mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-20 04:37:31 +07:00
Testing loading of old saves
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import io.anuke.arc.ApplicationCore;
|
||||
import io.anuke.arc.*;
|
||||
import io.anuke.arc.backends.headless.HeadlessApplication;
|
||||
import io.anuke.arc.collection.Array;
|
||||
import io.anuke.arc.math.geom.Point2;
|
||||
@ -215,6 +215,15 @@ public class ApplicationTests{
|
||||
assertTrue(state.teams.get(defaultTeam).cores.size > 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
void loadOldSave(){
|
||||
resetWorld();
|
||||
SaveIO.load(Core.files.internal("build77.msav"));
|
||||
|
||||
assertEquals(50, world.width());
|
||||
assertEquals(50, world.height());
|
||||
}
|
||||
|
||||
@Test
|
||||
void inventoryDeposit(){
|
||||
depositTest(Blocks.surgeSmelter, Items.copper);
|
||||
|
Reference in New Issue
Block a user