This commit is contained in:
Anuken 2020-06-08 17:19:47 -04:00
parent 87ab895253
commit 8ea28e1ced
147 changed files with 438 additions and 437 deletions

View file

@ -369,7 +369,7 @@ public class ApplicationTests{
world.tile(0, 0).setBlock(Blocks.itemSource);
world.tile(0, 0).entity.configureAny(Items.copper);
Array<Tilec> entities = Array.with(world.tile(0, 0).entity);
Seq<Tilec> entities = Seq.with(world.tile(0, 0).entity);
for(int i = 0; i < length; i++){
world.tile(i + 1, 0).setBlock(Blocks.conveyor);
@ -429,13 +429,13 @@ public class ApplicationTests{
@Test
void arrayIterators(){
Array<String> arr = Array.with("a", "b" , "c", "d", "e", "f");
Array<String> results = new Array<>();
Seq<String> arr = Seq.with("a", "b" , "c", "d", "e", "f");
Seq<String> results = new Seq<>();
for(String s : arr);
for(String s : results);
Array.iteratorsAllocated = 0;
Seq.iteratorsAllocated = 0;
//simulate non-enhanced for loops, which should be correct
@ -455,7 +455,7 @@ public class ApplicationTests{
}
assertEquals(results.size, index);
assertEquals(0, Array.iteratorsAllocated, "No new iterators must have been allocated.");
assertEquals(0, Seq.iteratorsAllocated, "No new iterators must have been allocated.");
}
@Test

View file

@ -30,7 +30,7 @@ public class SectorTests{
@TestFactory
DynamicTest[] testZoneValidity(){
Array<DynamicTest> out = new Array<>();
Seq<DynamicTest> out = new Seq<>();
if(world == null) world = new World();
for(SectorPreset zone : content.sectors()){
@ -57,7 +57,7 @@ public class SectorTests{
}
}
Array<SpawnGroup> spawns = state.rules.spawns;
Seq<SpawnGroup> spawns = state.rules.spawns;
int bossWave = 0;
outer: