mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-18 03:37:44 +07:00
Save loading regression tests
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
apply plugin: "java"
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
|
||||
sourceSets{
|
||||
test{
|
||||
resources{
|
||||
srcDir "src/test/resources"
|
||||
}
|
||||
}
|
||||
}
|
@ -220,8 +220,9 @@ public class ApplicationTests{
|
||||
resetWorld();
|
||||
SaveIO.load(Core.files.internal("build77.msav"));
|
||||
|
||||
assertEquals(50, world.width());
|
||||
assertEquals(50, world.height());
|
||||
//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
|
||||
|
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