Skip to content

Commit

Permalink
Add a test for the scale method where oldmax = newmax (#72401)
Browse files Browse the repository at this point in the history
  • Loading branch information
cytrek-betoniarek committed Dec 4, 2023
1 parent cacd03b commit 41a6c60
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public void testScale() {
Assert.assertEquals(5, PriorityCalculationsUtil.scale(5, 10, 3));
Assert.assertEquals(8, PriorityCalculationsUtil.scale(5, 10, 4));
Assert.assertEquals(10, PriorityCalculationsUtil.scale(5, 10, 5));

Assert.assertEquals(4, PriorityCalculationsUtil.scale(7, 7, 4));
Assert.assertEquals(0, 1);
}

@Test
Expand Down

0 comments on commit 41a6c60

Please sign in to comment.