Minor. Update tests to support them on Android

This commit is contained in:
Mikhael Bogdanov
2020-02-27 09:30:55 +01:00
parent 8a8536f8ae
commit a9e03937a3
8 changed files with 23 additions and 16 deletions
@@ -4,7 +4,7 @@
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT
package test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
import kotlin.test.assertTrue
@@ -58,10 +58,10 @@ fun box(): String {
val dpz = D::class.constructors.single().call(+0.0)
val fmz = F::class.constructors.single().call(-0.0f)
val fpz = F::class.constructors.single().call(+0.0f)
check(::dMinusZero.annotations.single() as D, dmz, "@D\\(d=-0.0\\)")
check(::dPlusZero.annotations.single() as D, dpz, "@D\\(d=0.0\\)")
check(::fMinusZero.annotations.single() as F, fmz, "@F\\(f=-0.0f?\\)")
check(::fPlusZero.annotations.single() as F, fpz, "@F\\(f=0.0f?\\)")
check(::dMinusZero.annotations.single() as D, dmz, "@test.D\\(d=-0.0\\)")
check(::dPlusZero.annotations.single() as D, dpz, "@test.D\\(d=0.0\\)")
check(::fMinusZero.annotations.single() as F, fmz, "@test.F\\(f=-0.0f?\\)")
check(::fPlusZero.annotations.single() as F, fpz, "@test.F\\(f=0.0f?\\)")
checkNot(dmz, dpz)
checkNot(fmz, fpz)