rcl/golden/error/runtime_assertion_failure.test
Ruud van Asseldonk 65a38a7f7c Pretty-print assertion values as json
This means that not every value is pretty-printable, which not so nice.
I need to make an RCL pretty printer to enable this first.
2023-09-30 21:52:44 +02:00

10 lines
241 B
Text

assert true, "This assertion should pass.";
assert false, "This assertion should fail.";
0
# output:
stdin:2:8
2 │ assert false, "This assertion should fail.";
╵ ^~~~~
Error: Assertion failed. This assertion should fail.