Fix exception message checking
Looks like there's no big difference between "J.s() must not be null" and "s() must not be null".
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ fun box(): String {
|
|||||||
return try {
|
return try {
|
||||||
f(J.s())
|
f(J.s())
|
||||||
} catch (e: IllegalStateException) {
|
} catch (e: IllegalStateException) {
|
||||||
if (e.message == "J.s() must not be null")
|
if (e.message == "J.s() must not be null" || e.message == "s() must not be null")
|
||||||
"OK"
|
"OK"
|
||||||
else
|
else
|
||||||
"Fail: ${e.message}"
|
"Fail: ${e.message}"
|
||||||
|
|||||||
Reference in New Issue
Block a user