JVM: Update tests for IEEE 754 comparisons

This commit is contained in:
Dmitry Petrov
2020-01-14 11:18:27 +03:00
parent d5ff1047a5
commit f8341ad7eb
14 changed files with 146 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// !LANGUAGE: -ProperIeee754Comparisons
fun equals5(a: Any?, b: Any?) = if (a is Double && b is Double?) a == b else null!!

View File

@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// !LANGUAGE: -ProperIeee754Comparisons
fun equals5(a: Any?, b: Any?) = if (a is Float && b is Float?) a == b else null!!

View File

@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// !LANGUAGE: -ProperIeee754Comparisons
fun box(): String {
val plusZero: Any = 0.0

View File

@@ -1,4 +1,5 @@
// !API_VERSION: 1.0
// !LANGUAGE: -ProperIeee754Comparisons
fun box(): String {
val nullValue: Any? = null