Add test case for more complicated interpolations

This commit is contained in:
Clément Fournier
2020-08-30 16:45:46 +02:00
parent 74a9950128
commit c2069282a7
2 changed files with 14 additions and 2 deletions

View File

@ -1,2 +1,4 @@
var stringInStringUnicode = "${""}";
var stringInStringNewline = "${"\n")}";
var stringInStringNewline = "${"\n"}";
var nestedInterpolation = "${"${"\n"}"}";
var interpolationWithMethodCall = "${foo("")}";

View File

@ -8,5 +8,15 @@ L2
[var] 1 3
[stringInStringNewline] 5 25
[=] 27 27
["${"\\n")}"] 29 38
["${"\\n"}"] 29 37
L3
[var] 1 3
[nestedInterpolation] 5 23
[=] 25 25
["${"${"\\n"}"}"] 27 40
L4
[var] 1 3
[interpolationWithMethodCall] 5 31
[=] 33 33
["${foo("")}"] 35 46
EOF