Skip to content

Commit 5e75fa1

Browse files
committed
Update references
1 parent 38f6498 commit 5e75fa1

File tree

126 files changed

+985
-358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+985
-358
lines changed

tests/reference/asr-array_01_decl-39cf894.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
"infile_hash": "3dff59bab7475d254ce0470065c11e797e52a5b2a3d7546acc0e6705",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-array_01_decl-39cf894.stdout",
9-
<<<<<<< HEAD
10-
"stdout_hash": "ee0a4d84951f6650a05acb092400a9f68bf7141cd2539099696c0379",
11-
=======
12-
"stdout_hash": "24b1d1f4774489a87a82c51c4f4a797ca363f7efdb011e42936fc6b9",
13-
>>>>>>> 665badeb7 (TEST: Update reference tests)
14-
"stderr": null,
15-
"stderr_hash": null,
16-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-array_01_decl-39cf894.stderr",
11+
"stderr_hash": "5155e10cd4958bdda66178e2ed1b6faed6f415ff1cf3ff78e45f9cbb",
12+
"returncode": 2
1713
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded
2+
--> tests/../integration_tests/array_01_decl.py:2:1
3+
|
4+
2 | from numpy import empty, int16, int32, int64, float32, float64, complex64, complex128
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here
6+
7+
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded
8+
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12
9+
|
10+
364 | return x1 % x2
11+
| ^^^^^^^ imported here
12+
13+
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin'
14+
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15
15+
|
16+
209 | if (n_ - (n_ // 2)*2) == 0:
17+
| ^^^^^^^

tests/reference/asr-array_02_decl-e8f6874.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"infile_hash": "9a398864499c7a3b4e2a480faf3a5dccaa65f9771a8de27f55f11ca4",
66
"outfile": null,
77
"outfile_hash": null,
8-
"stdout": "asr-array_02_decl-e8f6874.stdout",
9-
"stdout_hash": "a442d1685188ae1ac93a98e1c9d15aa8c9eb53cf7ef9d926911d941c",
10-
"stderr": null,
11-
"stderr_hash": null,
12-
"returncode": 0
8+
"stdout": null,
9+
"stdout_hash": null,
10+
"stderr": "asr-array_02_decl-e8f6874.stderr",
11+
"stderr_hash": "b9fd331511456947bef74d5df2f292244e7fa1861ab43918a6e02acd",
12+
"returncode": 2
1313
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded
2+
--> tests/../integration_tests/array_02_decl.py:2:1
3+
|
4+
2 | from numpy import empty, int32, int64, float32, float64, complex64, complex128
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here
6+
7+
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded
8+
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12
9+
|
10+
364 | return x1 % x2
11+
| ^^^^^^^ imported here
12+
13+
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin'
14+
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15
15+
|
16+
209 | if (n_ - (n_ // 2)*2) == 0:
17+
| ^^^^^^^

tests/reference/asr-arrays_01-a617b64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_01-a617b64.stderr",
11-
"stderr_hash": "b8317c7306f747ceefa8557c06f2a0b4a8a4bd7ae805bb494fca6ef2",
11+
"stderr_hash": "ddb2640e06012a8ab9efe1bc1dbe130321fb96721ce3fd749813c988",
1212
"returncode": 2
1313
}
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
semantic error: Type mismatch in procedure call; the types must be compatible
2-
--> tests/errors/arrays_01.py:15:9
3-
|
4-
15 | [i8(214), i8(157), i8(3), i8(146)])
5-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])
6-
|
7-
9 | a : i8[4] = empty(4, dtype=int8)
8-
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4])
1+
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded
2+
--> tests/errors/arrays_01.py:2:1
3+
|
4+
2 | from numpy import empty, int8
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here
6+
7+
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded
8+
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12
9+
|
10+
364 | return x1 % x2
11+
| ^^^^^^^ imported here
12+
13+
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin'
14+
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15
15+
|
16+
209 | if (n_ - (n_ // 2)*2) == 0:
17+
| ^^^^^^^

tests/reference/asr-arrays_02-da94458.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_02-da94458.stderr",
11-
"stderr_hash": "dc0e5be7cd6de7395421aedf1ce11977206f3e35bb7cba271aed8992",
11+
"stderr_hash": "b7b907310495016dfb487fccb13739865174dda44541ade08931bae9",
1212
"returncode": 2
1313
}
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
semantic error: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
2-
--> tests/errors/arrays_02.py:28:8
3-
|
4-
28 | assert r1.a == t1.a
5-
| ^^^^^^^^^^^^
1+
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded
2+
--> tests/errors/arrays_02.py:2:1
3+
|
4+
2 | from numpy import (empty, int8)
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here
6+
7+
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded
8+
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12
9+
|
10+
364 | return x1 % x2
11+
| ^^^^^^^ imported here
12+
13+
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin'
14+
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15
15+
|
16+
209 | if (n_ - (n_ // 2)*2) == 0:
17+
| ^^^^^^^

tests/reference/asr-arrays_03-de2e952.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"stdout": null,
99
"stdout_hash": null,
1010
"stderr": "asr-arrays_03-de2e952.stderr",
11-
"stderr_hash": "4c932f31bbb10c9ba8d8d75be226ba9c33553be3bcb367c8112e31af",
11+
"stderr_hash": "ddfa8ceea3cb39c9b59069d2a67d13c8752ec2511fc62c162e77b206",
1212
"returncode": 2
1313
}
Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
semantic error: Type mismatch in annotation-assignment, the types must be compatible
2-
--> tests/errors/arrays_03.py:6:5
1+
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded
2+
--> tests/errors/arrays_03.py:2:1
33
|
4-
6 | x: i16[4] = empty([5], dtype=int16)
5-
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]')
4+
2 | from numpy import empty, int16
5+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here
6+
7+
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded
8+
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12
9+
|
10+
364 | return x1 % x2
11+
| ^^^^^^^ imported here
12+
13+
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin'
14+
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15
15+
|
16+
209 | if (n_ - (n_ // 2)*2) == 0:
17+
| ^^^^^^^

0 commit comments

Comments
 (0)