CLOVIS
09/06/2023, 2:49 PMfor
loop that creates multiple tests.
I've done that before for Kotlin/JVM by declaring a JUnit5 @TestFactory
, and with Kotlin/JS by using dynamic to access the test list, but I have no idea how to do that with Kotlin/Native.mbonnin
09/06/2023, 2:57 PMkevin.cianfarini
09/06/2023, 3:08 PM@Test fun theTest() {
(0..10).forEach { i ->
parameterized(i)
}
}
private fun parameterized(i: Int) {
assertEquals(...)
}
CLOVIS
09/06/2023, 3:10 PMmbonnin
09/06/2023, 3:11 PM--tests
CLOVIS
09/06/2023, 3:14 PMmbonnin
09/06/2023, 3:14 PMCLOVIS
09/06/2023, 3:15 PMCLOVIS
09/06/2023, 3:16 PMAdam S
09/06/2023, 3:17 PMAdam S
09/06/2023, 3:18 PMAdam S
09/06/2023, 3:18 PMCLOVIS
09/06/2023, 3:20 PMCLOVIS
09/06/2023, 3:20 PMAdam S
09/06/2023, 3:20 PMEdoardo Luppi
09/06/2023, 7:13 PMEdoardo Luppi
09/06/2023, 7:14 PM