Skip to content

Commit ad5a1db

Browse files
committed
TEST: Update reference tests
1 parent ae7ac94 commit ad5a1db

File tree

4 files changed

+145
-3
lines changed

4 files changed

+145
-3
lines changed

tests/reference/asr-test_end_sep_keywords-49ea13f.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"outfile": null,
77
"outfile_hash": null,
88
"stdout": "asr-test_end_sep_keywords-49ea13f.stdout",
9-
"stdout_hash": "abd3d56db58711bac46b8548acd917a01d4d1671dbd2898906f04c19",
9+
"stdout_hash": "fdc9aacfe26de399fedb9c7de6d585f7068fe51c2ea5bce7f3d42827",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-test_end_sep_keywords-49ea13f.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
()
124124
(StringConstant
125125
"xyz\n"
126-
(Character 1 5 () [])
126+
(Character 1 4 () [])
127127
)
128128
)
129129
(Print
@@ -146,7 +146,7 @@
146146
)
147147
(StringConstant
148148
"xyz\n"
149-
(Character 1 5 () [])
149+
(Character 1 4 () [])
150150
)
151151
)]
152152
()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "ast_new-string3-27e8bd2",
3+
"cmd": "lpython --show-ast --indent --new-parser --no-color {infile} -o {outfile}",
4+
"infile": "tests/parser/string3.py",
5+
"infile_hash": "61a3cd7139d6c429a037d74fe12b8f8305cabe9b91218082851dd7ca",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": "ast_new-string3-27e8bd2.stdout",
9+
"stdout_hash": "9d8ca937b551799ff4908f347ff6685917d0bfc41977c5316af4e108",
10+
"stderr": null,
11+
"stderr_hash": null,
12+
"returncode": 0
13+
}
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
(Module
2+
[(Expr
3+
(ConstantStr
4+
"\n"
5+
()
6+
)
7+
)
8+
(Expr
9+
(ConstantStr
10+
"\r"
11+
()
12+
)
13+
)
14+
(Expr
15+
(ConstantStr
16+
"\t"
17+
()
18+
)
19+
)
20+
(Expr
21+
(ConstantStr
22+
"'"
23+
()
24+
)
25+
)
26+
(Expr
27+
(ConstantStr
28+
"\""
29+
()
30+
)
31+
)
32+
(Expr
33+
(ConstantStr
34+
"\\"
35+
()
36+
)
37+
)
38+
(Expr
39+
(ConstantStr
40+
"\n\r\t'\"\\"
41+
()
42+
)
43+
)
44+
(Expr
45+
(ConstantStr
46+
"\n"
47+
()
48+
)
49+
)
50+
(Expr
51+
(ConstantStr
52+
"\r"
53+
()
54+
)
55+
)
56+
(Expr
57+
(ConstantStr
58+
"\t"
59+
()
60+
)
61+
)
62+
(Expr
63+
(ConstantStr
64+
"'"
65+
()
66+
)
67+
)
68+
(Expr
69+
(ConstantStr
70+
"\""
71+
()
72+
)
73+
)
74+
(Expr
75+
(ConstantStr
76+
"\\"
77+
()
78+
)
79+
)
80+
(Expr
81+
(ConstantStr
82+
"\n\r\t'\"\\"
83+
()
84+
)
85+
)
86+
(Expr
87+
(ConstantStr
88+
"hi\n"
89+
()
90+
)
91+
)
92+
(Expr
93+
(ConstantStr
94+
"hi\r\n\t"
95+
()
96+
)
97+
)
98+
(Expr
99+
(ConstantStr
100+
"1234\n\t\\jdlasf\t"
101+
()
102+
)
103+
)
104+
(Expr
105+
(ConstantStr
106+
"Hi this is a \"test case\"."
107+
()
108+
)
109+
)
110+
(Expr
111+
(ConstantStr
112+
"\nThis is \n\nabcd123\nThis is \r\nefgh\n"
113+
()
114+
)
115+
)
116+
(Expr
117+
(ConstantStr
118+
"This is \n\n"
119+
()
120+
)
121+
)
122+
(Expr
123+
(ConstantStr
124+
"hi dsjfklad"
125+
()
126+
)
127+
)]
128+
[]
129+
)

0 commit comments

Comments
 (0)