mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-20 04:37:31 +07:00
Save loading regression tests
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
apply plugin: "java"
|
apply plugin: "java"
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
|
sourceSets{
|
||||||
|
test{
|
||||||
|
resources{
|
||||||
|
srcDir "src/test/resources"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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
|
||||||
|
BIN
tests/src/test/resources/build77.msav
Normal file
BIN
tests/src/test/resources/build77.msav
Normal file
Binary file not shown.
Reference in New Issue
Block a user