Skip to content

Commit

Permalink
Fix testharness test
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed Aug 19, 2024
1 parent fe83fbe commit d9a0c46
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ class TestHarnessTest {
fun size_ExtremelyBig_measuredWidthIsCorrect() {
var width = 0.dp
composeTestRule.setContent {
TestHarness(size = DpSize(10000.dp, 10000.dp)) {
BoxOfSize(10000.dp, onWidth = { width = it })
TestHarness(size = DpSize(5000.dp, 5000.dp)) {
BoxOfSize(5000.dp, onWidth = { width = it })
}
}
composeTestRule.waitForIdle()

val ratio = width / 10000.dp
val ratio = width / 5000.dp
assertEquals(ratio, 1f, 0.01f)
}

Expand Down

0 comments on commit d9a0c46

Please sign in to comment.