Loading core/tests/coretests/src/android/content/res/FontScaleConverterFactoryTest.kt +7 −3 Original line number Diff line number Diff line Loading @@ -132,9 +132,13 @@ class FontScaleConverterFactoryTest { } .forEach { (table, sp) -> try { // Truth is slow because it creates a bunch of // objects. Don't use it unless we need to. if (!table.convertSpToDp(sp).isFinite()) { assertWithMessage("convertSpToDp(%s) on table: %s", sp, table) .that(table.convertSpToDp(sp)) .isFinite() } } catch (e: Exception) { throw AssertionError("Exception during convertSpToDp($sp) on table: $table", e) } Loading Loading
core/tests/coretests/src/android/content/res/FontScaleConverterFactoryTest.kt +7 −3 Original line number Diff line number Diff line Loading @@ -132,9 +132,13 @@ class FontScaleConverterFactoryTest { } .forEach { (table, sp) -> try { // Truth is slow because it creates a bunch of // objects. Don't use it unless we need to. if (!table.convertSpToDp(sp).isFinite()) { assertWithMessage("convertSpToDp(%s) on table: %s", sp, table) .that(table.convertSpToDp(sp)) .isFinite() } } catch (e: Exception) { throw AssertionError("Exception during convertSpToDp($sp) on table: $table", e) } Loading