Skip to content

Commit

Permalink
Fix smoke test contains assertions
Browse files Browse the repository at this point in the history
The existing highlight smoke test contains assertions included newlines.
The newlines are no longer present now we have changed the desired line
length of the output.

To fix this we use the YAML trim annotation `-`, so we're only asserting
the text rather than the text and the trailing newline.
  • Loading branch information
paulcadman committed Jul 10, 2024
1 parent a99154e commit 72e2113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/smoke/Commands/dev/highlight.smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tests:
- positive/Internal/LiteralInt.juvix

stdout:
contains: |
contains: |-
add-text-properties
exit-status: 0

Expand All @@ -23,7 +23,7 @@ tests:
- negative/InfixError.juvix

stdout:
contains: |
contains: |-
juvix-goto
exit-status: 0

Expand Down

0 comments on commit 72e2113

Please sign in to comment.