Skip to content

Commit

Permalink
Fix test so that the default coordinate is 0,0,0
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Jan 13, 2024
1 parent 470b618 commit 66e05fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void missingAxisWords() throws GcodeParserException {
List<GcodeParser.GcodeMeta> metaList = GcodeParserUtils.processCommand("G38.2", 0, new GcodeState());
GcodeParser.GcodeMeta meta = Iterables.getOnlyElement(metaList);
assertThat(meta.code).isEqualTo(G38_2);
assertThat(meta.state.currentPoint).isEqualTo(new Position(Double.NaN, Double.NaN, Double.NaN, MM));
assertThat(meta.state.currentPoint).isEqualTo(new Position(0, 0, 0, MM));
}

@Test
Expand Down Expand Up @@ -92,7 +92,7 @@ public void motionNoAxes() throws Exception {
List<GcodeParser.GcodeMeta> metaList = GcodeParserUtils.processCommand("G3", 0, new GcodeState());
GcodeParser.GcodeMeta meta = Iterables.getOnlyElement(metaList);
assertThat(meta.code).isEqualTo(G3);
assertThat(meta.state.currentPoint).isEqualTo(new Position(Double.NaN, Double.NaN, Double.NaN, MM));
assertThat(meta.state.currentPoint).isEqualTo(new Position(0, 0, 0, MM));
}

@Test
Expand Down

0 comments on commit 66e05fe

Please sign in to comment.