@@ -43,20 +43,20 @@ internal class BitmapUtilsAndroidTest {
43
43
@Test
44
44
fun cropAndResize_when_portrait_should_have_correct_size () {
45
45
FileUtils .openBitmapInputStream(TestHelper .context(), TestHelper .drawableUri(R .drawable.background)).use {
46
- output = BitmapUtils .cropAndResize(it, CGRect (79 , 45 , 32 , 96 ), CGSize (16 , 48 ), BitmapFactory .Options ())
46
+ output = BitmapUtils .cropAndResize(it, CGRect (79 , 45 , 32 , 96 ), CGSize (19 , 48 ), BitmapFactory .Options ())
47
47
48
- assertThat(output!! .width, equalTo(16 ))
48
+ assertThat(output!! .width, equalTo(19 ))
49
49
assertThat(output!! .height, equalTo(48 ))
50
50
}
51
51
}
52
52
53
53
@Test
54
54
fun cropAndResize_when_landscaape_should_have_correct_size () {
55
55
FileUtils .openBitmapInputStream(TestHelper .context(), TestHelper .drawableUri(R .drawable.background)).use {
56
- output = BitmapUtils .cropAndResize(it, CGRect (79 , 45 , 32 , 96 ), CGSize (48 , 17 ), BitmapFactory .Options ())
56
+ output = BitmapUtils .cropAndResize(it, CGRect (79 , 45 , 32 , 96 ), CGSize (15 , 48 ), BitmapFactory .Options ())
57
57
58
- assertThat(output!! .width, equalTo(48 ))
59
- assertThat(output!! .height, equalTo(17 ))
58
+ assertThat(output!! .width, equalTo(15 ))
59
+ assertThat(output!! .height, equalTo(48 ))
60
60
}
61
61
}
62
62
0 commit comments