Skip to content

Commit 3f6e59a

Browse files
committed
TEST: Update reference tests
1 parent 73128ee commit 3f6e59a

15 files changed

+62
-1046
lines changed

tests/reference/asr-expr9-814e4bc.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"infile_hash": "1f02a7486b298ae9e74a163875a76f8fa7cc25d7f50547133dbbdfab",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-expr9-814e4bc.stdout",
9-
"stdout_hash": "fd9a9323419a77d41f2b3b06c607be0aab4dc626a070dda593b2117c",
10-
"stderr": null,
11-
"stderr_hash": null,
12-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-expr9-814e4bc.stderr",
11+
"stderr_hash": "d50c52f36eaf3379c473f5eda2caf5337d5c851fb1b0abc37973af28",
12+
"returncode": 2
1313
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semantic error: Assignment to function parameter `a` is not allowed
2+
--> tests/expr9.py:14:5
3+
|
4+
14 | a = 3
5+
| ^

tests/reference/asr-expr9-814e4bc.stdout

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

tests/reference/asr-generics_02-e2ea5c9.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"infile_hash": "1103ff0edcb14e988eaa30252064dd77c7012884226c63f35f7aab01",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-generics_02-e2ea5c9.stdout",
9-
"stdout_hash": "e1448166e4027e61053bec1c27e7887537ea0be09fbee1149526ad70",
10-
"stderr": null,
11-
"stderr_hash": null,
12-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-generics_02-e2ea5c9.stderr",
11+
"stderr_hash": "33f384da510c967a667524640db4585ae142e65a3137799a04e79dbb",
12+
"returncode": 2
1313
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semantic error: Assignment to function parameter `x` is not allowed
2+
--> tests/../integration_tests/generics_02.py:8:5
3+
|
4+
8 | x = y
5+
| ^

tests/reference/asr-generics_02-e2ea5c9.stdout

Lines changed: 0 additions & 325 deletions
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-test_assign9-51278b8",
3+
"cmd": "lpython --show-asr --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/test_assign9.py",
5+
"infile_hash": "3aa4fda6489ce46f10fd95cd257f5d29a59629fc340d6d8ea5e983d8",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-test_assign9-51278b8.stderr",
11+
"stderr_hash": "d6b69b941971863accaf997113f14a990e656c1665324bc3f2f66e8b",
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: Assignment to function parameter `x` is not allowed
2+
--> tests/errors/test_assign9.py:2:5
3+
|
4+
2 | x = 2
5+
| ^

0 commit comments

Comments
 (0)