We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3489f2 commit f8a7c8cCopy full SHA for f8a7c8c
Lib/test/test_array.py
@@ -197,7 +197,15 @@ def test_numbers(self):
197
(['d'], IEEE_754_DOUBLE_LE, '<dddd',
198
[9006104071832581.0, float('inf'), float('-inf'), -0.0]),
199
(['d'], IEEE_754_DOUBLE_BE, '>dddd',
200
- [9006104071832581.0, float('inf'), float('-inf'), -0.0])
+ [9006104071832581.0, float('inf'), float('-inf'), -0.0]),
201
+ (['f'], IEEE_754_FLOAT_COMPLEX_LE, '<ffff',
202
+ [16711938.0j, float('inf'), complex('1-infj'), -0.0]),
203
+ (['f'], IEEE_754_FLOAT_COMPLEX_BE, '>ffff',
204
205
+ (['d'], IEEE_754_DOUBLE_COMPLEX_LE, '<dddd',
206
+ [9006104071832581.0j, float('inf'), complex('1-infj'), -0.0]),
207
+ (['d'], IEEE_754_DOUBLE_COMPLEX_BE, '>dddd',
208
+ [9006104071832581.0j, float('inf'), complex('1-infj'), -0.0])
209
)
210
for testcase in testcases:
211
valid_typecodes, mformat_code, struct_fmt, values = testcase
0 commit comments