Skip to content

Commit

Permalink
YWatchValueIndicatorTest: update check to value determined by axis fo…
Browse files Browse the repository at this point in the history
…rmatter
  • Loading branch information
wirew0rm committed Aug 8, 2023
1 parent 9d94974 commit 7ed1331
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void rightSide() {
@TestFx
void setMarkerValue() {
valueWatchIndicatorTested.setMarkerValue(35.15);
assertTrue(valueWatchIndicatorTested.getText().matches("35[\\.,]15")); // US or German locale
assertEquals("35", valueWatchIndicatorTested.getText()); // uses axis formatting. If this changes to include decimals, make sure to be locale agnostic
assertEquals(35.15, valueWatchIndicatorTested.getValue(), 1e-2);
}

Expand Down

0 comments on commit 7ed1331

Please sign in to comment.