Skip to content

Commit

Permalink
Fix a fragile test.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 16, 2024
1 parent b6697b3 commit 616ce37
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public void testDial(

FxAssert.verifyThat(dial, node -> {
final var x = node.rawValue().get();
return x == 0.16500000000000006;
final var rounded = Math.floor(x * 100.0) / 100.0;
return rounded == 0.16;
});
}

Expand Down

0 comments on commit 616ce37

Please sign in to comment.