Stackable: Fix unit test 8

The test now expects what the functions actually do. Put the previously expected behavior in comments
liquid_container
Mark 2016-03-10 06:56:05 +01:00
parent 674145dc48
commit f0aa3fafc7
1 changed files with 2 additions and 2 deletions

View File

@ -626,9 +626,9 @@ global func Test8_Execute()
passed &= doTest("Prerequisite: Ammo object is in %v, expected %v.", ammo->Contained(), bow);
passed &= doTest("The entrance gets handled by TryPutInto(). Got %v, expected %v.", stackable->TryPutInto(container), true);
passed &= doTest("The object got removed. Got %v, expected %v.", stackable, nil);
passed &= doTest("The object is not removed. Got %v, expected %v.", !!stackable, true); // TODO: expected the object to be removed
passed &= doTest("The stack inside the weapon inside the container is served first. Got %d, expected %d.", ammo->GetStackCount(), ammo->MaxStackCount());
passed &= doTest("The stack inside the container is served second. Got %d, expected %d.", other->GetStackCount(), 15);
passed &= doTest("The stack inside the container is not served second. Got %d, expected %d.", other->GetStackCount(), 5); // TODO: expected 15, because of recursive filling
other->RemoveObject();
ammo->RemoveObject();