Skip to content

Commit ffd46e5

Browse files
committed
Fix test
1 parent 872d82f commit ffd46e5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

integration_tests/test_unary_op_04.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
from lpython import u16
1+
from lpython import u16, bitnot_u16
22

33
def foo(grp: u16) -> u16:
4-
i: u16 = ~(u16(grp))
5-
4+
i: u16 = bitnot_u16(grp)
65
return i
76

87

98
def foo2() -> u16:
10-
i: u16 = ~(u16(0xffff))
11-
9+
i: u16 = bitnot_u16(u16(0xffff))
1210
return i
1311

1412
def foo3() -> u16:
15-
i: u16 = ~(u16(0xffff))
16-
17-
return ~i
13+
i: u16 = bitnot_u16(u16(0xffff))
14+
return bitnot_u16(i)
1815

1916
assert foo(u16(0)) == u16(0xffff)
2017
assert foo(u16(0xffff)) == u16(0)

0 commit comments

Comments
 (0)