Skip to content

Commit

Permalink
TEST: Update reference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed May 6, 2023
1 parent f14dc8a commit 17fa37d
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/reference/asr-test_end_sep_keywords-49ea13f.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "asr-test_end_sep_keywords-49ea13f.stdout",
"stdout_hash": "abd3d56db58711bac46b8548acd917a01d4d1671dbd2898906f04c19",
"stdout_hash": "fdc9aacfe26de399fedb9c7de6d585f7068fe51c2ea5bce7f3d42827",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
4 changes: 2 additions & 2 deletions tests/reference/asr-test_end_sep_keywords-49ea13f.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
()
(StringConstant
"xyz\n"
(Character 1 5 () [])
(Character 1 4 () [])
)
)
(Print
Expand All @@ -146,7 +146,7 @@
)
(StringConstant
"xyz\n"
(Character 1 5 () [])
(Character 1 4 () [])
)
)]
()
Expand Down
2 changes: 1 addition & 1 deletion tests/reference/ast_new-string1-f14340e.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"outfile": null,
"outfile_hash": null,
"stdout": "ast_new-string1-f14340e.stdout",
"stdout_hash": "51806e5893017a386c0ce7a4f3260c7605cabd5ea4e6a16aa300d8c2",
"stdout_hash": "3c8dedf6837ef645df66914da1329b41bb4e780d70e2f883df9752a0",
"stderr": null,
"stderr_hash": null,
"returncode": 0
Expand Down
10 changes: 5 additions & 5 deletions tests/reference/ast_new-string1-f14340e.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
)
(Expr
(ConstantBytes
"b'\nMultiple texts goes here.\n'"
"b'\\nMultiple texts goes here.\\n'"
()
)
)
Expand Down Expand Up @@ -272,7 +272,7 @@
)
(Expr
(ConstantBytes
"b'\nText\n'"
"b'\\nText\\n'"
()
)
)
Expand All @@ -296,7 +296,7 @@
)
(Expr
(ConstantBytes
"b'\nText\n'"
"b'\\nText\\n'"
()
)
)
Expand Down Expand Up @@ -506,13 +506,13 @@
)
(Expr
(ConstantBytes
"b'\n'"
"b'\\n'"
()
)
)
(Expr
(ConstantBytes
"b'\n\n\\n'"
"b'\\n\\n\\\\n'"
()
)
)]
Expand Down
13 changes: 13 additions & 0 deletions tests/reference/ast_new-string3-27e8bd2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"basename": "ast_new-string3-27e8bd2",
"cmd": "lpython --show-ast --indent --new-parser --no-color {infile} -o {outfile}",
"infile": "tests/parser/string3.py",
"infile_hash": "61a3cd7139d6c429a037d74fe12b8f8305cabe9b91218082851dd7ca",
"outfile": null,
"outfile_hash": null,
"stdout": "ast_new-string3-27e8bd2.stdout",
"stdout_hash": "9d8ca937b551799ff4908f347ff6685917d0bfc41977c5316af4e108",
"stderr": null,
"stderr_hash": null,
"returncode": 0
}
129 changes: 129 additions & 0 deletions tests/reference/ast_new-string3-27e8bd2.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
(Module
[(Expr
(ConstantStr
"\n"
()
)
)
(Expr
(ConstantStr
"\r"
()
)
)
(Expr
(ConstantStr
"\t"
()
)
)
(Expr
(ConstantStr
"'"
()
)
)
(Expr
(ConstantStr
"\""
()
)
)
(Expr
(ConstantStr
"\\"
()
)
)
(Expr
(ConstantStr
"\n\r\t'\"\\"
()
)
)
(Expr
(ConstantStr
"\n"
()
)
)
(Expr
(ConstantStr
"\r"
()
)
)
(Expr
(ConstantStr
"\t"
()
)
)
(Expr
(ConstantStr
"'"
()
)
)
(Expr
(ConstantStr
"\""
()
)
)
(Expr
(ConstantStr
"\\"
()
)
)
(Expr
(ConstantStr
"\n\r\t'\"\\"
()
)
)
(Expr
(ConstantStr
"hi\n"
()
)
)
(Expr
(ConstantStr
"hi\r\n\t"
()
)
)
(Expr
(ConstantStr
"1234\n\t\\jdlasf\t"
()
)
)
(Expr
(ConstantStr
"Hi this is a \"test case\"."
()
)
)
(Expr
(ConstantStr
"\nThis is \n\nabcd123\nThis is \r\nefgh\n"
()
)
)
(Expr
(ConstantStr
"This is \n\n"
()
)
)
(Expr
(ConstantStr
"hi dsjfklad"
()
)
)]
[]
)

0 comments on commit 17fa37d

Please sign in to comment.