Skip to content

Commit 9139b25

Browse files
committed
TEST: Add error test for size()
1 parent a5c6317 commit 9139b25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/errors/array_size_01.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from lpython import i32
2+
from numpy import empty
3+
4+
def main0():
5+
x: i32[4, 5, 2] = empty([4, 5, 2])
6+
print(size(x))
7+
8+
main0()

0 commit comments

Comments
 (0)