Skip to content

Commit

Permalink
Update unit test to support new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyank Vasa authored and pvasa committed Apr 22, 2019
1 parent d291db7 commit aec4b22
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SizeMapTest {
val map = SizeMap()
map.add(3, 4)
map.add(9, 16)
assertEquals(map.ratios().size, 2)
assertEquals(map.ratios().size, 4)
}

@Test
Expand All @@ -35,7 +35,7 @@ class SizeMapTest {
map.add(3, 4)
map.add(6, 8)
map.add(9, 12)
assertEquals(map.ratios().size, 1)
assertEquals(map.ratios().size, 2)
val ratio = map.ratios().toTypedArray()[0]
assertEquals(ratio.toString(), "3:4")
assertEquals(map.sizes(ratio).size, 3)
Expand All @@ -45,7 +45,7 @@ class SizeMapTest {
fun testClear() {
val map = SizeMap()
map.add(12, 34)
assertEquals(map.ratios().size, 1)
assertEquals(map.ratios().size, 2)
map.clear()
assertEquals(map.ratios().size, 0)
}
Expand Down

0 comments on commit aec4b22

Please sign in to comment.