Skip to content

Commit 1dded4d

Browse files
committed
TEST: Update reference tests
1 parent a0f1217 commit 1dded4d

8 files changed

+72
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-func_08-c137415",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/func_08.py",
5+
"infile_hash": "7db9398db0036bb22e787d74ea36241f6535928f25e66c09c59e76e3",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-func_08-c137415.stderr",
11+
"stderr_hash": "5fe28460d4f28e79ced8c17e75ba6da4cdfccd36e20d1c3a85d07cf1",
12+
"returncode": 2
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semantic error: Intent annotation 'In' cannot be used here
2+
--> tests/errors/func_08.py:3:17
3+
|
4+
3 | def main0(x: In[In[i32]]):
5+
| ^^^^^^^
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-test_annassign_01-2f18669",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/test_annassign_01.py",
5+
"infile_hash": "68f667b69b25d6a5f7f281a6dc7f2e2912511d8f4f20dbeab8442436",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-test_annassign_01-2f18669.stderr",
11+
"stderr_hash": "f3609cdad6bdb1be4a138587d5d36d0a28b71e4e51bb1304c2d2a01f",
12+
"returncode": 2
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semantic error: Unsupported type annotation: Optional
2+
--> tests/errors/test_annassign_01.py:2:8
3+
|
4+
2 | a: Optional[i32] = 5
5+
| ^^^^^^^^^^^^^
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-test_annassign_02-accf6db",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/test_annassign_02.py",
5+
"infile_hash": "419ee1ffc46f3b9fd99f008d4fdde20f4cc65cf82bbd234ad9fcc005",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-test_annassign_02-accf6db.stderr",
11+
"stderr_hash": "3a426fad190cfcadc94dd971acc709446147d8a63658953bfbb94771",
12+
"returncode": 2
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semantic error: Unsupported type annotation: Pattern
2+
--> tests/errors/test_annassign_02.py:2:15
3+
|
4+
2 | hex_pat : Pattern[str] = r'-?0[xX]+'
5+
| ^^^^^^^^^^^^
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-test_annassign_03-f8c6160",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/test_annassign_03.py",
5+
"infile_hash": "aa787a87881a62595216dd4a7710bcf598550c100dda789794eb3c07",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-test_annassign_03-f8c6160.stderr",
11+
"stderr_hash": "e87d692cc8404a7e66f41d61635f318e20003991138c3db5a0794884",
12+
"returncode": 2
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semantic error: Intent annotation 'InOut' cannot be used here
2+
--> tests/errors/test_annassign_03.py:6:13
3+
|
4+
6 | lexer : InOut[LasrLexer] = LasrLexer(5)
5+
| ^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)