[IR] update testdata: don't use "D" suffix on double constants

This commit is contained in:
Zalim Bashorov
2020-11-23 20:46:19 +03:00
committed by teamcityserver
parent 73771a3513
commit 57cb8f97e9
8 changed files with 26 additions and 22 deletions
@@ -2,7 +2,7 @@ fun testSimple(x: Double): Int {
return { // BLOCK
val tmp0_subject: Double = x
when {
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0) -> 0
else -> 1
}
}
@@ -15,7 +15,7 @@ fun testSmartCastInWhenSubject(x: Any): Int {
return { // BLOCK
val tmp1_subject: Double = x /*as Double */
when {
ieee754equals(arg0 = tmp1_subject, arg1 = 0.0D) -> 0
ieee754equals(arg0 = tmp1_subject, arg1 = 0.0) -> 0
else -> 1
}
}
@@ -39,7 +39,7 @@ fun testSmartCastInWhenConditionInBranch(x: Any): Int {
val tmp3_subject: Any = x
when {
tmp3_subject !is Double -> -1
EQEQ(arg0 = tmp3_subject, arg1 = 0.0D) -> 0
EQEQ(arg0 = tmp3_subject, arg1 = 0.0) -> 0
else -> 1
}
}
@@ -77,3 +77,4 @@ fun testWithPrematureExitInConditionSubexpression(x: Any): Int {
}
}
}
@@ -2,7 +2,7 @@ fun testSimple(x: Double): Int {
return { // BLOCK
val tmp0_subject: Double = x
when {
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0D) -> 0
ieee754equals(arg0 = tmp0_subject, arg1 = 0.0) -> 0
else -> 1
}
}
@@ -15,7 +15,7 @@ fun testSmartCastInWhenSubject(x: Any): Int {
return { // BLOCK
val tmp0_subject: Any = x
when {
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0) -> 0
else -> 1
}
}
@@ -39,7 +39,7 @@ fun testSmartCastInWhenConditionInBranch(x: Any): Int {
val tmp0_subject: Any = x
when {
tmp0_subject is Double.not() -> -1
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0D) -> 0
ieee754equals(arg0 = tmp0_subject /*as Double */, arg1 = 0.0) -> 0
else -> 1
}
}