Skip to content

Commit

Permalink
Adjust tests for stability (3).
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Aug 7, 2024
1 parent 69928f6 commit c9e6961
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ public void testPianoPropertyDefaults(
final var view = pianoView.get();
assertEquals(24.0, view.naturalKeyWidth());
assertEquals(12.0, view.accidentalKeyWidth());
assertEquals(41.0, view.naturalKeyHeight());
assertEquals((41.0 / 3.0) * 2.0, view.accidentalKeyHeight());
assertTrue(view.naturalKeyHeight() <= 32.0);
assertTrue(view.accidentalKeyHeight() < view.naturalKeyHeight());
assertEquals(100, view.keyCount());
assertEquals(Color.gray(0.1), view.colorKeyAccidental());
assertEquals(Color.gray(0.3), view.colorKeyAccidentalOver());
Expand Down

0 comments on commit c9e6961

Please sign in to comment.