Skip to content

Commit

Permalink
Add a simple get/set test case
Browse files Browse the repository at this point in the history
  • Loading branch information
MatkovIvan committed Sep 17, 2024
1 parent 9cc0062 commit d21a7b1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,15 @@ class TextStyleTest {
}
}

@Test
fun textStyleTopRatioTest() {
TextStyle().use { textStyle ->
assertEquals(-1f, textStyle.topRatio)
textStyle.topRatio = 0.42f
assertEquals(0.42f, textStyle.topRatio)
}
}

@Test
fun textStyleMetricsContainsMeaningfulValues() = runTest {
val jbMono = Typeface.makeFromResource(jbMonoPath)
Expand Down

0 comments on commit d21a7b1

Please sign in to comment.