From b4dbdbb508b4bea1fcd7e5a48ebbe6a716af9c1f Mon Sep 17 00:00:00 2001 From: Pavel Punegov Date: Tue, 23 Jun 2020 14:54:46 +0300 Subject: [PATCH] Add hypot(NaN, 0.0) that fails on ios_arm64 --- backend.native/tests/runtime/basic/hypot.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend.native/tests/runtime/basic/hypot.kt b/backend.native/tests/runtime/basic/hypot.kt index 9ac06f20301..f125ecd1046 100644 --- a/backend.native/tests/runtime/basic/hypot.kt +++ b/backend.native/tests/runtime/basic/hypot.kt @@ -22,4 +22,7 @@ fun main() { println("Double.-Inf: ${Double.NEGATIVE_INFINITY} ${Double.NEGATIVE_INFINITY.toRawBits().toUInt().toString(16)}") println(Double.POSITIVE_INFINITY == Double.NEGATIVE_INFINITY) assertEquals(Double.POSITIVE_INFINITY, hypot(Double.NEGATIVE_INFINITY, Double.NaN)) + + println("hypot NaN, 0: ${hypot(Double.NaN, 0.0).toRawBits().toString(16)}") + assertTrue(hypot(Double.NaN, 0.0).isNaN()) } \ No newline at end of file