diff options
Diffstat (limited to 'android/app/src/test/java/org/terst/doot/widget')
| -rw-r--r-- | android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt b/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt index 7f3bcfc..643a2e3 100644 --- a/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt +++ b/android/app/src/test/java/org/terst/doot/widget/ui/WidgetTextSizeTest.kt @@ -7,8 +7,8 @@ import org.junit.Test class WidgetTextSizeTest { @Test - fun `SMALL keeps content at base size and weight, unchanged`() { - assertEquals(14f, WidgetTextSize.SMALL.scaledContentSize(14).value, 0.001f) + fun `SMALL scales content by 0_95x and keeps weight unchanged`() { + assertEquals(13.3f, WidgetTextSize.SMALL.scaledContentSize(14).value, 0.001f) assertEquals(FontWeight.Normal, WidgetTextSize.SMALL.scaledContentWeight(FontWeight.Normal)) } @@ -19,15 +19,15 @@ class WidgetTextSizeTest { } @Test - fun `NORMAL scales size by 1_15x and bumps weight one step`() { - assertEquals(16.1f, WidgetTextSize.NORMAL.scaledContentSize(14).value, 0.001f) + fun `NORMAL scales content by 1_0925x and bumps weight one step`() { + assertEquals(15.295f, WidgetTextSize.NORMAL.scaledContentSize(14).value, 0.001f) assertEquals(FontWeight.Medium, WidgetTextSize.NORMAL.scaledContentWeight(FontWeight.Normal)) assertEquals(FontWeight.Bold, WidgetTextSize.NORMAL.scaledHeaderWeight(FontWeight.Medium)) } @Test - fun `LARGE scales size by 1_3x and bumps weight two steps`() { - assertEquals(18.2f, WidgetTextSize.LARGE.scaledContentSize(14).value, 0.001f) + fun `LARGE scales content by 1_235x and bumps weight two steps`() { + assertEquals(17.29f, WidgetTextSize.LARGE.scaledContentSize(14).value, 0.001f) assertEquals(FontWeight.Bold, WidgetTextSize.LARGE.scaledContentWeight(FontWeight.Normal)) } |
