Skip to content

Commit 0ca1615

Browse files
committed
enable struct tests
1 parent 915088d commit 0ca1615

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_struct.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ def test_new_features():
9999
res = struct.pack(xfmt, arg)
100100
assert res == exp
101101
assert struct.calcsize(xfmt) == len(res)
102-
# rev = struct.unpack(xfmt, res)[0]
103-
# if rev != arg:
104-
# assert asy
102+
rev = struct.unpack(xfmt, res)[0]
103+
if rev != arg:
104+
assert asy
105105

106106

107107
def test_pack_unpack():
@@ -138,8 +138,8 @@ def test_pack_unpack():
138138

139139
# floats
140140
cases = [
141-
# ('f', 1.12123123, 1.121231198310852),
142-
# ('d', 1.12123123, 1.12123123),
141+
('f', 1.12123123, 1.121231198310852),
142+
('d', 1.12123123, 1.12123123),
143143
('e', 1.12345678912345, 1.123046875),
144144
('e', -145.12345678912345, -145.125),
145145
]

0 commit comments

Comments
 (0)