Skip to content

Commit 61e6317

Browse files
committed
TEST: Update reference tests
1 parent 43898c0 commit 61e6317

9 files changed

+42
-607
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"basename": "asr-array_size_01-1d39bb5",
3+
"cmd": "lpython --show-asr --indent --no-color {infile} -o {outfile}",
4+
"infile": "tests/errors/array_size_01.py",
5+
"infile_hash": "2048f745528343089a5c4c86917af2f6216b32fde07973c8497d0a94",
6+
"outfile": null,
7+
"outfile_hash": null,
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-array_size_01-1d39bb5.stderr",
11+
"stderr_hash": "ff1f57a762db4562936cc84fab44bebe44c6e54720cf9fa2dc0424af",
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: Function 'size' is not declared and not intrinsic
2+
--> tests/errors/array_size_01.py:6:11
3+
|
4+
6 | print(size(x))
5+
| ^^^^^^^

tests/reference/asr-doconcurrentloop_01-7b9a7d3.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-doconcurrentloop_01-7b9a7d3.stdout",
9-
"stdout_hash": "dffb1f7233f48b1711345ac6d1649bfdc6d8244f5596e9a2a9144904",
10-
"stderr": null,
11-
"stderr_hash": null,
12-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-doconcurrentloop_01-7b9a7d3.stderr",
11+
"stderr_hash": "7fa9913490187ed716a0fd84a2bd1e191f61992e66031acb3dc9cb89",
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: Function 'size' is not declared and not intrinsic
2+
--> tests/doconcurrentloop_01.py:6:9
3+
|
4+
6 | N = size(a)
5+
| ^^^^^^^

tests/reference/asr-doconcurrentloop_01-7b9a7d3.stdout

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

tests/reference/cpp-doconcurrentloop_01-4e9f274.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"infile_hash": "2fe3769863a595a01e46a88bf55c944e61a0d141d5c75816ffa74d96",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "cpp-doconcurrentloop_01-4e9f274.stdout",
9-
"stdout_hash": "ee58f996458bdf91f906f012b009681a568ad314c5907d9a698e41b8",
10-
"stderr": null,
11-
"stderr_hash": null,
12-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "cpp-doconcurrentloop_01-4e9f274.stderr",
11+
"stderr_hash": "7fa9913490187ed716a0fd84a2bd1e191f61992e66031acb3dc9cb89",
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: Function 'size' is not declared and not intrinsic
2+
--> tests/doconcurrentloop_01.py:6:9
3+
|
4+
6 | N = size(a)
5+
| ^^^^^^^

tests/reference/cpp-doconcurrentloop_01-4e9f274.stdout

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

tests/tests.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,10 @@ asr = true
10541054
filename = "errors/func_01.py"
10551055
asr = true
10561056

1057+
[[test]]
1058+
filename = "errors/array_size_01.py"
1059+
asr = true
1060+
10571061
# tests/runtime_errors
10581062
[[test]]
10591063
filename = "runtime_errors/test_list_01.py"

0 commit comments

Comments
 (0)