Skip to content

Commit 896164e

Browse files
Rename the prefix to tokens.
Updade the tests
1 parent 4a0ae9f commit 896164e

13 files changed

+7
-171
lines changed

run_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def main():
7979
filename, update_reference, extra_args)
8080

8181
if tokens:
82-
run_test("cpp", "lpython --no-color --show-tokens {infile} -o {outfile}",
82+
run_test("tokens", "lpython --no-color --show-tokens {infile} -o {outfile}",
8383
filename, update_reference, extra_args)
8484

8585
print()

tests/reference/cpp-complex2-cc31ff8.json

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

tests/reference/cpp-complex2-cc31ff8.stdout

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

tests/reference/cpp-dictionary1-6564213.json

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

tests/reference/cpp-dictionary1-6564213.stdout

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

tests/reference/cpp-set1-89cc208.json

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

tests/reference/cpp-set1-89cc208.stdout

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

tests/reference/cpp-comment1-2f8ab90.json renamed to tests/reference/tokens-comment1-2f8ab90.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"basename": "cpp-comment1-2f8ab90",
2+
"basename": "tokens-comment1-2f8ab90",
33
"cmd": "lpython --no-color --show-tokens {infile} -o {outfile}",
44
"infile": "tests/tokens/comment1.py",
55
"infile_hash": "27258459bf39e8c5bcaa41e7fef8a593775a915273787edc46c73b4d",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "cpp-comment1-2f8ab90.stdout",
8+
"stdout": "tokens-comment1-2f8ab90.stdout",
99
"stdout_hash": "39b458b1d715dfd275ef676390dad2e5853cc9b0a7aa9b1c36011a79",
1010
"stderr": null,
1111
"stderr_hash": null,

tests/reference/cpp-docstring1-1355fbb.json renamed to tests/reference/tokens-docstring1-1355fbb.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"basename": "cpp-docstring1-1355fbb",
2+
"basename": "tokens-docstring1-1355fbb",
33
"cmd": "lpython --no-color --show-tokens {infile} -o {outfile}",
44
"infile": "tests/tokens/docstring1.py",
55
"infile_hash": "76a733fb41e5cfebb1d9bd74a719fa2644e746ce06a64fbbf91358a8",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "cpp-docstring1-1355fbb.stdout",
8+
"stdout": "tokens-docstring1-1355fbb.stdout",
99
"stdout_hash": "8002935592daf4c952a5edb182c847a27e183ec70c3239fd060545f8",
1010
"stderr": null,
1111
"stderr_hash": null,

tests/reference/cpp-symbols1-658c990.json renamed to tests/reference/tokens-symbols1-658c990.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"basename": "cpp-symbols1-658c990",
2+
"basename": "tokens-symbols1-658c990",
33
"cmd": "lpython --no-color --show-tokens {infile} -o {outfile}",
44
"infile": "tests/tokens/symbols1.py",
55
"infile_hash": "4f8b111c9caf59245efae13d9d9efbf2ce5f2c42d0850079e6313903",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "cpp-symbols1-658c990.stdout",
8+
"stdout": "tokens-symbols1-658c990.stdout",
99
"stdout_hash": "0c55157185187ddf4454e6129e742698606b70075a4e689d340f770f",
1010
"stderr": null,
1111
"stderr_hash": null,

0 commit comments

Comments
 (0)