mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
This commit is contained in:
parent
d06a74e7a2
commit
774be56bde
1 changed files with 17 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ import arc.math.*;
|
|||
import arc.math.geom.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import arc.util.serialization.*;
|
||||
import arc.util.serialization.JsonValue.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.core.*;
|
||||
|
|
@ -94,6 +96,21 @@ public class ApplicationTests{
|
|||
state.set(State.menu);
|
||||
}
|
||||
|
||||
@Test
|
||||
void serverListJson(){
|
||||
String[] files = {"servers.json", "servers_be.json", "servers_v6.json"};
|
||||
|
||||
for(String file : files){
|
||||
try{
|
||||
String str = Core.files.absolute("./../../" + file).readString();
|
||||
assertEquals(ValueType.array, new JsonReader().parse(str).type());
|
||||
assertTrue(Jval.read(str).isArray());
|
||||
}catch(Exception e){
|
||||
fail("Failed to parse " + file, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void initialization(){
|
||||
assertNotNull(logic);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue