mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
More unit tests / Lighting improvements
This commit is contained in:
parent
4d3e268972
commit
629999a1cd
9 changed files with 36 additions and 14 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue