forked from Mirrors/openclonk
Fixed producers unit test #5
The problems here were: - the pickaxe component list returned [[Metal, 1], [Wood, 1]] instead of [[Wood, 1], [Metal, 1]]. This may be a result of the new component system with proplists; probably the components are sorted alphabetically nowqteditor
parent
ffcbdc7fd0
commit
10c918d4a2
|
@ -428,7 +428,7 @@ global func Test5_OnStart(int plr)
|
|||
Log("Testing the behaviour of ProductionCosts()");
|
||||
|
||||
passed &= doTest("Costs for single component object (Metal). Got %v, expected %v.", producer->ProductionCosts(Metal), [[Ore, 1]]);
|
||||
passed &= doTest("Costs for multi component object (Pickaxe). Got %v, expected %v.", producer->ProductionCosts(Pickaxe), [[Wood, 1], [Metal, 1]]);
|
||||
passed &= doTest("Costs for multi component object (Pickaxe). Got %v, expected %v.", producer->ProductionCosts(Pickaxe), [[Metal, 1], [Wood, 1]]);
|
||||
passed &= doTest("Costs for object with liquid and fuel need (Bread). Got %v, expected %v.", producer->ProductionCosts(Bread), [[Flour, 1], [Water, 50]]);
|
||||
|
||||
producer->RemoveObject();
|
||||
|
|
Loading…
Reference in New Issue