Skip to content

Commit aa1f195

Browse files
authored
Merge pull request #1717 from Shaikh-Ubaid/indent_ref_test
Indent all reference test results
2 parents 825364d + 1f64eb8 commit aa1f195

File tree

723 files changed

+155738
-1890
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

723 files changed

+155738
-1890
lines changed

run_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def is_included(backend):
5656
run_test(
5757
filename,
5858
"ast",
59-
"lpython --show-ast --no-color {infile} -o {outfile}",
59+
"lpython --show-ast --indent --no-color {infile} -o {outfile}",
6060
filename,
6161
update_reference,
6262
extra_args)
@@ -65,7 +65,7 @@ def is_included(backend):
6565
run_test(
6666
filename,
6767
"ast_new",
68-
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}",
68+
"lpython --show-ast --indent --new-parser --no-color {infile} -o {outfile}",
6969
filename,
7070
update_reference,
7171
extra_args)
@@ -74,14 +74,14 @@ def is_included(backend):
7474
run_test(
7575
filename,
7676
"asr",
77-
"lpython --show-asr --no-color {infile} -o {outfile}",
77+
"lpython --show-asr --indent --no-color {infile} -o {outfile}",
7878
filename,
7979
update_reference,
8080
extra_args)
8181

8282
if pass_ is not None:
8383
cmd = "lpython --pass=" + pass_ + \
84-
" --show-asr --no-color {infile} -o {outfile}"
84+
" --show-asr --indent --no-color {infile} -o {outfile}"
8585
run_test(filename, "pass_{}".format(pass_), cmd,
8686
filename, update_reference, extra_args)
8787

tests/reference/asr-array_01_decl-39cf894.stdout

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/reference/asr-array_01_decl-39cf894.json renamed to tests/reference/asr-array_01_decl-f955627.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"basename": "asr-array_01_decl-39cf894",
3-
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
2+
"basename": "asr-array_01_decl-f955627",
3+
"cmd": "lpython --show-asr --indent --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/array_01_decl.py",
55
"infile_hash": "3dff59bab7475d254ce0470065c11e797e52a5b2a3d7546acc0e6705",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-array_01_decl-39cf894.stdout",
9-
"stdout_hash": "57442cc5bdf2788dfde4f41fa74c886757651c0dc6a62b4f3e0ec745",
8+
"stdout": "asr-array_01_decl-f955627.stdout",
9+
"stdout_hash": "39595a55fb5e863bd95ffde37cacead64fd9aaaff3581e74a163abaf",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-array_01_decl-f955627.stdout

Lines changed: 6568 additions & 0 deletions
Large diffs are not rendered by default.

tests/reference/asr-array_02_decl-e8f6874.json renamed to tests/reference/asr-array_02_decl-8860c8a.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"basename": "asr-array_02_decl-e8f6874",
3-
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
2+
"basename": "asr-array_02_decl-8860c8a",
3+
"cmd": "lpython --show-asr --indent --no-color {infile} -o {outfile}",
44
"infile": "tests/../integration_tests/array_02_decl.py",
55
"infile_hash": "8daa77dd2d5fe6c6f5f3ce867746c5e13290305ef7e1723ac9669285",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-array_02_decl-e8f6874.stdout",
9-
"stdout_hash": "0744133e16cf5b9274d2e3172c2cd9efb0f25962023b7bb240f2e753",
8+
"stdout": "asr-array_02_decl-8860c8a.stdout",
9+
"stdout_hash": "4dc4b2b3d5c92862f7be20944c222abc130f334a506c5df2fdc21a1d",
1010
"stderr": null,
1111
"stderr_hash": null,
1212
"returncode": 0

tests/reference/asr-array_02_decl-8860c8a.stdout

Lines changed: 6374 additions & 0 deletions
Large diffs are not rendered by default.

tests/reference/asr-array_02_decl-e8f6874.stdout

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/reference/asr-assert1-1ce92ea.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/reference/asr-assert1-1ce92ea.stdout

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-assert1-a8db80c",
3+
"cmd": "lpython --show-asr --indent --no-color {infile} -o {outfile}",
4+
"infile": "tests/assert1.py",
5+
"infile_hash": "0ff84ea5ccd3d0815cbb66e1c3d3acd61dee7257c98aa1a27ceeef3b",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": "asr-assert1-a8db80c.stdout",
9+
"stdout_hash": "3a14fc9641ee15d828bff99817ea049e418e5b1171821f18ec747853",
10+
"stderr": null,
11+
"stderr_hash": null,
12+
"returncode": 0
13+
}

0 commit comments

Comments
 (0)