From 2a48db46a9853706878b47687ef17981c751fb2f Mon Sep 17 00:00:00 2001 From: Carlos Ballesteros Velasco Date: Sat, 23 May 2020 14:27:44 +0200 Subject: [PATCH] Fix test using deprecated features --- sample-atlas/src/commonTest/kotlin/test.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample-atlas/src/commonTest/kotlin/test.kt b/sample-atlas/src/commonTest/kotlin/test.kt index 068bd20..a30f14a 100644 --- a/sample-atlas/src/commonTest/kotlin/test.kt +++ b/sample-atlas/src/commonTest/kotlin/test.kt @@ -11,8 +11,8 @@ class AtlasTest : ViewsForTesting() { @Test fun test() = viewsTest { atlasMain() - assertEquals(3, stage.children.size) - assertEquals(Size(68, 204), (stage.children.first() as Image).texture.bmp.size) + assertEquals(3, stage.numChildren) + assertEquals(Size(68, 204), (stage[0] as Image).texture.bmp.size) } @Test