forked from phoedos/pmd
Add test case for more complicated interpolations
This commit is contained in:
@ -1,2 +1,4 @@
|
||||
var stringInStringUnicode = "${"∆"}";
|
||||
var stringInStringNewline = "${"\n")}";
|
||||
var stringInStringNewline = "${"\n"}";
|
||||
var nestedInterpolation = "${"${"\n"}"}";
|
||||
var interpolationWithMethodCall = "${foo("")}";
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user