Created
June 3, 2024 08:34
-
-
Save parisyup/fa5642911782603712ccf370e6c95c58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Fail" | |
} catch (e:Exception) { | |
val exceptionMessage = e.message ?: "No exception message" | |
if (exceptionMessage.contains("Requires a single command.")) { | |
"Pass" } | |
else { | |
"Contract failed but with a different Exception: ${e.message}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment