rcl/golden/error/parse_assert_semicolon.test
Ruud van Asseldonk ef0528f9d6 Use box drawing chars for errors, fix column off-by-one
Inspired by Terraform's error output, the box drawing characters tend
to get connected in a terminal (but not IntelliJ it seems), it looks
slightly cleaner than pipes. And these code points are in Unicode since
1993, so I don't think they are particularly controversial to use
(unlike color emoji).

And now that I have to rewrite all the goldens, let's fix the column
counter too. It still counts bytes and not columns, but I'm not sure
if the way it's counted is consistent across applications. We could
the existing unicode-width dependency to count though.
2023-09-27 21:31:51 +02:00

11 lines
250 B
Text

assert false;
0
# output:
stdin:1:13
1 │ assert false;
╵ ^
Error: Expected ',' here between the assertion condition and message.
Help: An assertion has the form 'assert <condition>, <message>;'. The message is not optional.