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 95d7c52 commit 7faf6e5
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 7faf6e5

Please sign in to comment.