Skip to content

Commit

Permalink
feat: resolve requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
starforcraft committed Sep 2, 2024
1 parent 220ca83 commit e403a61
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,17 @@ private DetectorTest() {
}

@GameTest(template = "empty_15x15")
public static void shouldEmitRedstone(final GameTestHelper helper) {
public static void shouldNotEmitRedstone(final GameTestHelper helper) {
preparePlot(helper, Direction.DOWN, (detector, pos, sequence) -> {
// Arrange
sequence.thenWaitUntil(networkIsAvailable(helper, pos, network -> {
insert(helper, network, DIRT, 10);
insert(helper, network, STONE, 15);
}));

// Act

// Assert
sequence
.thenWaitUntil(storageContainsExactly(
helper,
pos,
new ResourceAmount(asResource(DIRT), 10),
new ResourceAmount(asResource(STONE), 15)
pos
))
.thenWaitUntil(() -> helper.assertBlockProperty(pos.north(), RedStoneWireBlock.POWER, 0))
.thenSucceed();
Expand Down Expand Up @@ -90,7 +84,7 @@ public static void shouldEmitRedstoneUnder(final GameTestHelper helper) {
}

@GameTest(template = "empty_15x15")
public static void shouldEmitRedstoneDefault(final GameTestHelper helper) {
public static void shouldUseEqualModeByDefault(final GameTestHelper helper) {
preparePlot(helper, Direction.DOWN, (detector, pos, sequence) -> {
// Arrange
sequence.thenWaitUntil(networkIsAvailable(helper, pos, network -> {
Expand Down

0 comments on commit e403a61

Please sign in to comment.