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 ae7ac94 commit ad5a1db
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 3 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
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 ad5a1db

Please sign in to comment.