Minor: use common implementation of doubleTotalOrderEquals for tests

This commit is contained in:
Ilya Gorbunov
2018-04-10 21:09:21 +03:00
parent 2826733e87
commit f7546c809d
4 changed files with 1 additions and 4 deletions
@@ -33,5 +33,3 @@ private val isJava6 = System.getProperty("java.version").startsWith("1.6.")
internal actual fun String.removeLeadingPlusOnJava6(): String =
if (isJava6) removePrefix("+") else this
@kotlin.jvm.JvmVersion
internal actual fun doubleTotalOrderEquals(a: Double?, b: Double?) = (a as Any?) == b