-
Notifications
You must be signed in to change notification settings - Fork 163
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
38f6498
commit 5e75fa1
Showing
126 changed files
with
985 additions
and
358 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/../integration_tests/array_01_decl.py:2:1 | ||
| | ||
2 | from numpy import empty, int16, int32, int64, float32, float64, complex64, complex128 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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: | ||
| ^^^^^^^ |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/../integration_tests/array_02_decl.py:2:1 | ||
| | ||
2 | from numpy import empty, int32, int64, float32, float64, complex64, complex128 | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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: | ||
| ^^^^^^^ |
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,8 +1,17 @@ | ||
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]) | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
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 | ||
| ^^^^^^^^^^^^ | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_03.py:6: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 | ||
| | ||
6 | x: i16[4] = empty([5], dtype=int16) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[4]' and 'i16[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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_04.py:6: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 | ||
| | ||
6 | x: i16[5] = empty([5], dtype=int32) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5]' and 'i32[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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_05.py:6: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 | ||
| | ||
6 | x: i16[5, 4] = empty([5, 3], dtype=int16) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i16[5,3]') | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_06.py:6: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 | ||
| | ||
6 | x: i16[5, 4] = empty([5, 4], dtype=int32) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i16[5,4]' and 'i32[5,4]') | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_07.py:6: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 | ||
| | ||
6 | x: f32[5, 4] = empty([5, 4], dtype=complex64) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('f32[5,4]' and 'c32[5,4]') | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
semantic error: Type mismatch in annotation-assignment, the types must be compatible | ||
--> tests/errors/arrays_08.py:9: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 | ||
| | ||
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64) | ||
| ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type mismatch ('i64[100,120,200]' and 'i64[120,100,200]') | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
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 | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_09.py:2:1 | ||
| | ||
9 | x: i64[p, q, r] = empty([q, p, r], dtype=int64) | ||
| ^ | ||
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: | ||
| ^^^^^^^ |
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,5 +1,17 @@ | ||
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 | ||
warning: The module 'numpy' located in $DIR/src/bin/../runtime/lpython_intrinsic_numpy.py cannot be loaded | ||
--> tests/errors/arrays_10.py:2:1 | ||
| | ||
9 | x: i64[100, 120, 200] = empty([q, p, r], dtype=int64) | ||
| ^ | ||
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: | ||
| ^^^^^^^ |
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.