mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
The commons commonTest source set is shared across all KMP targets, including the iosArm64/iosSimulatorArm64 spike, but several tests still reached for JVM-only APIs that don't resolve on Kotlin/Native: - JUnit (`org.junit.*`, `junit.framework.TestCase`) → kotlin.test, with message arguments moved from first (JUnit) to last (kotlin.test). - `assertArrayEquals` → `assertContentEquals`. - `@JvmStatic` on the `android.util.Log` test stub → removed (it only affects JVM bytecode; companion calls work without it). - `seg.javaClass.simpleName` → `seg::class.simpleName!!`. - A test function name containing `()` (illegal on Native) → renamed. - `String(CharArray, offset, count)` → `CharArray.concatToString`. CliffDetectorTest exercises `computeStalledSpeakers`/`defaultCliffBackoffMs`, which live in the jvmAndroid-only NestViewModel and are invisible to iOS, so it moves to jvmTest alongside NestViewModelTest.