Skip to content

Commit 7faf6e5

Browse files
committed
YWatchValueIndicatorTest: update check to value determined by axis formatter
1 parent 95d7c52 commit 7faf6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chartfx-chart/src/test/java/io/fair_acc/chartfx/plugins/YWatchValueIndicatorTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void rightSide() {
7575
@TestFx
7676
void setMarkerValue() {
7777
valueWatchIndicatorTested.setMarkerValue(35.15);
78-
assertTrue(valueWatchIndicatorTested.getText().matches("35[\\.,]15")); // US or German locale
78+
assertEquals("35", valueWatchIndicatorTested.getText()); // uses axis formatting. If this changes to include decimals, make sure to be locale agnostic
7979
assertEquals(35.15, valueWatchIndicatorTested.getValue(), 1e-2);
8080
}
8181

0 commit comments

Comments
 (0)