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:
Dmitry Petrov
2019-12-02 16:58:22 +03:00
parent a819104d81
commit 26782d7216
@@ -7,7 +7,7 @@ fun box(): String {
return try {
f(J.s())
} 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"
else
"Fail: ${e.message}"