diff --git a/jvm/src/test/scala/io/kaitai/struct/exprlang/ExpressionsSpec.scala b/jvm/src/test/scala/io/kaitai/struct/exprlang/ExpressionsSpec.scala index 4113dc6d4..d4d872171 100644 --- a/jvm/src/test/scala/io/kaitai/struct/exprlang/ExpressionsSpec.scala +++ b/jvm/src/test/scala/io/kaitai/struct/exprlang/ExpressionsSpec.scala @@ -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") )))