More unit tests / Lighting improvements

This commit is contained in:
Anuken 2019-11-16 23:45:31 -05:00
parent 4d3e268972
commit 629999a1cd
9 changed files with 36 additions and 14 deletions

View file

@ -60,6 +60,7 @@ public class ApplicationTests{
super.init();
begins[0] = true;
testMap = maps.loadInternalMap("groundZero");
Thread.currentThread().interrupt();
}
};
@ -216,15 +217,24 @@ public class ApplicationTests{
}
@Test
void loadOldSave(){
void load77Save(){
resetWorld();
SaveIO.load(Core.files.internal("build77.msav"));
SaveIO.load(Core.files.internal("77.msav"));
//just tests if the map was loaded properly and didn't crash, no validity checks currently
assertEquals(276, world.width());
assertEquals(10, world.height());
}
@Test
void load85Save(){
resetWorld();
SaveIO.load(Core.files.internal("85.msav"));
assertEquals(250, world.width());
assertEquals(300, world.height());
}
@Test
void arrayIterators(){
Array<String> arr = Array.with("a", "b" , "c", "d", "e", "f");