Bug 43033: Test with a lot of holds

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Nick Clemens 2026-07-08 15:20:13 +00:00 committed by Pedro Amorim
parent 611328b5db
commit f94cfcfee4
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 14 additions and 1 deletions

View File

@ -9,7 +9,7 @@
use Modern::Perl;
use Test::More tests => 123;
use Test::More tests => 128;
use Test::NoWarnings;
use Test::Warn;
use Data::Dumper;
@ -367,6 +367,19 @@ test_allocation(
1
);
test_allocation(
"many holds, three items at Library A, none at B, three a C - only library C holds should fill with C items",
[
[ 0, -1, -1 ],
[ -1, 0, -1 ],
[ -1, -1, 0 ],
],
[ 3, 0, 3 ],
[ 0, 5, 22 ],
[ [ 2, 2 ], [ 2, 2 ], [ 2, 2 ] ],
0
);
test_allocation(
"large volume",
[