Debian Codegraph @

tests/languages/tremor/string_feature.test

raw
1 ""
2 "" ""
3 """
4 """
5 "fo\"obar"
6 "foo\
7 bar"
8 """
9 multiline
10 """
11 "snot#{badger}badger"
12 """
13 I am
14 a
15 long
16 multi-line
17 string with #{ "#{a+1} interpolation" }
18 """
19
20 ----------------------------------------------------
21
22 [
23 ["interpolated-string", [
24 ["string", "\"\""]
25 ]],
26
27 ["interpolated-string", [
28 ["string", "\"\""]
29 ]],
30 ["interpolated-string", [
31 ["string", "\"\""]
32 ]],
33
34 ["interpolated-string", [
35 ["string", "\"\"\"\r\n\"\"\""]
36 ]],
37
38 ["interpolated-string", [
39 ["string", "\"fo\\\"obar\""]
40 ]],
41
42 ["interpolated-string", [
43 ["string", "\"foo\\\r\nbar\""]
44 ]],
45
46 ["interpolated-string", [
47 ["string", "\"\"\"\r\nmultiline\r\n\"\"\""]
48 ]],
49
50 ["interpolated-string", [
51 ["string", "\"snot"],
52 ["interpolation", [
53 ["punctuation", "#{"],
54 ["expression", ["badger"]],
55 ["punctuation", "}"]
56 ]],
57 ["string", "badger\""]
58 ]],
59
60 ["interpolated-string", [
61 ["string", "\"\"\"\r\n I am\r\n a\r\n long\r\n multi-line\r\n string with "],
62 ["interpolation", [
63 ["punctuation", "#{"],
64 ["expression", [
65 ["interpolated-string", [
66 ["string", "\""],
67 ["interpolation", [
68 ["punctuation", "#{"],
69 ["expression", [
70 "a",
71 ["operator", "+"],
72 ["number", "1"]
73 ]],
74 ["punctuation", "}"]
75 ]],
76 ["string", " interpolation\""]
77 ]]
78 ]],
79 ["punctuation", "}"]
80 ]],
81 ["string", "\r\n\"\"\""]
82 ]]
83 ]
84
85 ----------------------------------------------------
86
87 Checks for strings.