mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
More tests
This commit is contained in:
parent
3ec243a49b
commit
ac496a60b7
4 changed files with 12 additions and 2 deletions
|
|
@ -424,6 +424,15 @@ public class ApplicationTests{
|
|||
assertEquals(300, world.height());
|
||||
}
|
||||
|
||||
@Test
|
||||
void load108Save(){
|
||||
resetWorld();
|
||||
SaveIO.load(Core.files.internal("108.msav"));
|
||||
|
||||
assertEquals(256, world.width());
|
||||
assertEquals(256, world.height());
|
||||
}
|
||||
|
||||
@Test
|
||||
void arrayIterators(){
|
||||
Seq<String> arr = Seq.with("a", "b" , "c", "d", "e", "f");
|
||||
|
|
|
|||
|
|
@ -28,14 +28,14 @@ public class PowerTestFixture{
|
|||
headless = true;
|
||||
Core.graphics = new FakeGraphics();
|
||||
Core.files = new MockFiles();
|
||||
Vars.state = new GameState();
|
||||
Vars.tree = new FileTree();
|
||||
Vars.content = new ContentLoader(){
|
||||
@Override
|
||||
public void handleMappableContent(MappableContent content){
|
||||
|
||||
}
|
||||
};
|
||||
Vars.state = new GameState();
|
||||
Vars.tree = new FileTree();
|
||||
content.createBaseContent();
|
||||
Log.setUseColors(false);
|
||||
Time.setDeltaProvider(() -> 0.5f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue