Skip to content

Commit

Permalink
Add test for multiline string
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 2, 2023
1 parent fb0ee2e commit b7ac39e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,12 @@ object ScannerTests extends SimpleIOSuite with Checkers {
)
)

scanTest(
explicitName = "String literal, multi-line (parity test)",
input = "\"hello\nworld\"",
)(
List(
TokenKind.LIT_STRING("\"hello\nworld\"")
)
)
}

0 comments on commit b7ac39e

Please sign in to comment.