mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Test fixes
This commit is contained in:
parent
1d95980066
commit
73dd7ba21a
7 changed files with 52 additions and 36 deletions
|
|
@ -523,6 +523,9 @@ public class ApplicationTests{
|
|||
|
||||
Time.setDeltaProvider(() -> 9999f);
|
||||
|
||||
//prevents range issues
|
||||
state.rules.infiniteResources = true;
|
||||
|
||||
d1.update();
|
||||
|
||||
assertEquals(Blocks.copperWallLarge, world.tile(0, 0).block());
|
||||
|
|
@ -530,7 +533,10 @@ public class ApplicationTests{
|
|||
|
||||
d2.clearBuilding();
|
||||
d2.addBuild(new BuildPlan(1, 1));
|
||||
d2.update();
|
||||
|
||||
for(int i = 0; i < 3; i++){
|
||||
d2.update();
|
||||
}
|
||||
|
||||
assertEquals(Blocks.air, world.tile(0, 0).block());
|
||||
assertEquals(Blocks.air, world.tile(2, 2).block());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue