Skip to content

Commit

Permalink
TEST: Indent all AST and ASR tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Apr 19, 2023
1 parent 825364d commit 9938e6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def is_included(backend):
run_test(
filename,
"ast",
"lpython --show-ast --no-color {infile} -o {outfile}",
"lpython --show-ast --indent --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)
Expand All @@ -65,7 +65,7 @@ def is_included(backend):
run_test(
filename,
"ast_new",
"lpython --show-ast --new-parser --no-color {infile} -o {outfile}",
"lpython --show-ast --indent --new-parser --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)
Expand All @@ -74,14 +74,14 @@ def is_included(backend):
run_test(
filename,
"asr",
"lpython --show-asr --no-color {infile} -o {outfile}",
"lpython --show-asr --indent --no-color {infile} -o {outfile}",
filename,
update_reference,
extra_args)

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

Expand Down

0 comments on commit 9938e6c

Please sign in to comment.