unit test for generating a world
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
f0d5bf7b80
commit
cb570764b8
@ -2093,6 +2093,7 @@ Fix draw cell manager test
|
|||||||
(05/31/2025)
|
(05/31/2025)
|
||||||
Error logging in entity-character assignment
|
Error logging in entity-character assignment
|
||||||
Potential fix for macro pathing continuous loop
|
Potential fix for macro pathing continuous loop
|
||||||
|
Unit test for generating a world
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
25
src/test/java/electrosphere/server/macro/MacroDataTests.java
Normal file
25
src/test/java/electrosphere/server/macro/MacroDataTests.java
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package electrosphere.server.macro;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
|
import electrosphere.engine.Globals;
|
||||||
|
import electrosphere.server.datacell.ServerWorldData;
|
||||||
|
import electrosphere.test.annotations.UnitTest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests for macro data
|
||||||
|
*/
|
||||||
|
public class MacroDataTests {
|
||||||
|
|
||||||
|
@UnitTest
|
||||||
|
public void test_generateWorld_1(){
|
||||||
|
Globals.initGlobals();
|
||||||
|
ServerWorldData worldData = ServerWorldData.createGenerationTestWorldData();
|
||||||
|
MacroData macroData = MacroData.generateWorld(0, worldData);
|
||||||
|
|
||||||
|
assertEquals(true, macroData.getCivilizations().size() > 0);
|
||||||
|
|
||||||
|
Globals.resetGlobals();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user