fixup! [JS IR] [runtime] Remove valueOf method from Long
fix the test for the legacy backend
This commit is contained in:
@@ -39,6 +39,7 @@ fun box(): String {
|
|||||||
if (" ${null as Number?}" != " null") return "FAIL 10"
|
if (" ${null as Number?}" != " null") return "FAIL 10"
|
||||||
if (" ${x.toLong() as Any?}" != " $x") return "FAIL 11"
|
if (" ${x.toLong() as Any?}" != " $x") return "FAIL 11"
|
||||||
if (" ${null as Any?}" != " null") return "FAIL 12"
|
if (" ${null as Any?}" != " null") return "FAIL 12"
|
||||||
|
if (!testUtils.isLegacyBackend()) {
|
||||||
if (longToString(x.toLong()) != " $x") return "FAIL 13"
|
if (longToString(x.toLong()) != " $x") return "FAIL 13"
|
||||||
if (nullableLongToString1(x.toLong()) != " $x") return "FAIL 14"
|
if (nullableLongToString1(x.toLong()) != " $x") return "FAIL 14"
|
||||||
if (nullableLongToString1(null) != " null") return "FAIL 15"
|
if (nullableLongToString1(null) != " null") return "FAIL 15"
|
||||||
@@ -70,6 +71,7 @@ fun box(): String {
|
|||||||
if (arbitraryToString(x.toLong()) != " $x") return "FAIL 41"
|
if (arbitraryToString(x.toLong()) != " $x") return "FAIL 41"
|
||||||
if (nullableArbitraryToString(x.toLong()) != " $x") return "FAIL 42"
|
if (nullableArbitraryToString(x.toLong()) != " $x") return "FAIL 42"
|
||||||
if (nullableArbitraryToString(null) != " null") return "FAIL 43"
|
if (nullableArbitraryToString(null) != " null") return "FAIL 43"
|
||||||
|
}
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user