Skip to content

Commit

Permalink
ExpressionsSpec: f-strings: added test with newline in the middle, fi…
Browse files Browse the repository at this point in the history
…xed name of test with double quote in the middle
  • Loading branch information
GreyCat committed Feb 29, 2024
1 parent 8605f3f commit 1dbafe3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ class ExpressionsSpec extends AnyFunSpec {
)))
}

it("parses f-string with double quote in it") {
it("parses f-string string with newline in the middle") {
Expressions.parse("f\"abc\\ndef\"") should be(InterpolatedStr(ArrayBuffer(Str("abc\ndef"))))
}

it("parses f-string with double quote in the middle") {
Expressions.parse("f\"this \\\" is a quote\"") should be(InterpolatedStr(ArrayBuffer(
Str("this \" is a quote")
)))
Expand Down

0 comments on commit 1dbafe3

Please sign in to comment.