Save loading regression tests

This commit is contained in:
Anuken
2019-06-12 15:52:47 -04:00
parent 62bd0442df
commit 73c48afc99
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,11 @@
apply plugin: "java" apply plugin: "java"
sourceCompatibility = 1.8 sourceCompatibility = 1.8
sourceSets{
test{
resources{
srcDir "src/test/resources"
}
}
}

View File

@ -220,8 +220,9 @@ public class ApplicationTests{
resetWorld(); resetWorld();
SaveIO.load(Core.files.internal("build77.msav")); SaveIO.load(Core.files.internal("build77.msav"));
assertEquals(50, world.width()); //just tests if the map was loaded properly and didn't crash, no validity checks currently
assertEquals(50, world.height()); assertEquals(276, world.width());
assertEquals(10, world.height());
} }
@Test @Test

Binary file not shown.