More unit tests / Lighting improvements
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user