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:
parent
611328b5db
commit
f94cfcfee4
|
|
@ -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",
|
||||
[
|
||||
|
|
|
|||
Loading…
Reference in New Issue