Skip to content

Commit 2f8084b

Browse files
committed
TEST: Add test for unsupported operand unary op
1 parent 4e51418 commit 2f8084b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

tests/errors/test_operator_01.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from lpython import i32, dataclass
2+
3+
@dataclass
4+
class A:
5+
n: i32
6+
7+
def main0():
8+
a: A = A(10)
9+
print(-a)
10+
11+
main0()

tests/tests.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,10 @@ asr = true
845845
filename = "errors/test_pow4.py"
846846
asr = true
847847

848+
[[test]]
849+
filename = "errors/test_operator_01.py"
850+
asr = true
851+
848852
[[test]]
849853
filename = "errors/test_ord.py"
850854
asr = true

0 commit comments

Comments
 (0)