mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
JVM: Update tests for IEEE 754 comparisons
This commit is contained in:
@@ -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!!
|
||||
|
||||
|
||||
@@ -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!!
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// !API_VERSION: 1.0
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
|
||||
fun box(): String {
|
||||
val plusZero: Any = 0.0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// !API_VERSION: 1.0
|
||||
// !LANGUAGE: -ProperIeee754Comparisons
|
||||
|
||||
fun box(): String {
|
||||
val nullValue: Any? = null
|
||||
|
||||
Reference in New Issue
Block a user