Do not highlight replacement of equals involving floating-point types

Two tests with smart casts do not work yet
Part of KT-25933
This commit is contained in:
kenji tomita
2018-09-27 02:48:42 +03:00
committed by Mikhail Glukhikh
parent 8c6337f3f6
commit 1aa9d5673b
12 changed files with 99 additions and 8 deletions
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Double && b is Double && a.<caret>equals(b)
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Double && b is Double && a == b
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Float && b is Float && a.<caret>equals(b)
@@ -0,0 +1,4 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Any, b: Any) =
a is Float && b is Float && a == b
@@ -0,0 +1,3 @@
// FIX: Replace total order equality with IEEE 754 equality
fun checkPi(x: Double) = x.<caret>equals(3.14)
@@ -0,0 +1,3 @@
// FIX: Replace total order equality with IEEE 754 equality
fun checkPi(x: Double) = x == 3.14
@@ -0,0 +1,3 @@
// FIX: Replace total order equality with IEEE 754 equality
fun checkPi(x: Double) = 3.14.<caret>equals(x)
@@ -0,0 +1,3 @@
// FIX: Replace total order equality with IEEE 754 equality
fun checkPi(x: Double) = 3.14 == x
@@ -0,0 +1,3 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Double, b: Double) = a.<caret>equals(b)
@@ -0,0 +1,3 @@
// FIX: Replace total order equality with IEEE 754 equality
fun test(a: Double, b: Double) = a == b