Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e374e9b authored by Tyler Freeman's avatar Tyler Freeman Committed by Android (Google) Code Review
Browse files

Merge "FontScaleConverterFactoryTest: 15x perf increase" into udc-dev

parents 4c8b08a0 9753dd74
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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)
                }