-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08aa19a
commit dad38f9
Showing
132 changed files
with
30,547 additions
and
583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_01.py:2:1 | ||
| | ||
2 | from numpy import empty, int8 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
semantic error: Type mismatch in procedure call; the types must be compatible | ||
--> tests/errors/arrays_01.py:15:9 | ||
| | ||
15 | [i8(214), i8(157), i8(3), i8(146)]) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4]) | ||
| | ||
9 | a : i8[4] = empty(4, dtype=int8) | ||
| ^^^^^ type mismatch (passed argument type is list[i8] but required type is i8[4]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_02.py:2:1 | ||
| | ||
2 | from numpy import (empty, int8) | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
semantic error: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() | ||
--> tests/errors/arrays_02.py:28:8 | ||
| | ||
28 | assert r1.a == t1.a | ||
| ^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_03.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_03.py:6:5 | ||
| | ||
2 | from numpy import empty, int16 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
6 | x: i16[4] = empty([5], dtype=int16) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_04.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_04.py:6:5 | ||
| | ||
2 | from numpy import empty, int32 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
6 | x: i16[5] = empty([5], dtype=int32) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[5]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_05.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_05.py:6:5 | ||
| | ||
2 | from numpy import empty, int16 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
6 | x: i16[5, 4] = empty([5, 3], dtype=int16) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i16[5,3]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_06.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_06.py:6:5 | ||
| | ||
2 | from numpy import empty, int32 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
6 | x: i16[5, 4] = empty([5, 4], dtype=int32) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i32[5,4]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_07.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_07.py:6:5 | ||
| | ||
2 | from numpy import empty, complex64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
6 | x: f32[5, 4] = empty([5, 4], dtype=complex64) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('f32[5,4]' and 'c32[5,4]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_08.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_08.py:9:5 | ||
| | ||
2 | from numpy import empty, int64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i64[100,120,200]' and 'i64[120,100,200]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_09.py:2:1 | ||
semantic error: Only those local variables which can be reduced to compile time constant should be used in dimensions of an array. | ||
--> tests/errors/arrays_09.py:9:12 | ||
| | ||
2 | from numpy import empty, int64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64) | ||
| ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_10.py:2:1 | ||
semantic error: Only those local variables which can be reduced to compile time constant should be used in dimensions of an array. | ||
--> tests/errors/arrays_10.py:9:36 | ||
| | ||
2 | from numpy import empty, int64 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
9 | x: i64[100, 120, 200] = empty([q, p, r], dtype=int64) | ||
| ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_11.py:2:1 | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_11.py:5:1 | ||
| | ||
2 | from numpy import empty, int16 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ imported here | ||
|
||
warning: The module 'lpython_builtin' located in $DIR/src/bin/../runtime/lpython_builtin.py cannot be loaded | ||
--> $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py:364:12 | ||
| | ||
364 | return x1 % x2 | ||
| ^^^^^^^ imported here | ||
|
||
semantic error: The symbol '_lpython_floordiv' not found in the module 'lpython_builtin' | ||
--> $DIR/src/bin/../runtime/lpython_builtin.py:209:15 | ||
| | ||
209 | if (n_ - (n_ // 2)*2) == 0: | ||
| ^^^^^^^ | ||
5 | x: i16[4] = empty([5], dtype=int16) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[5]') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.