Skip to content

Commit 16b981f

Browse files
committed
Test exception in read_bcif_any_double()
1 parent bd8bd4a commit 16b981f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_format_bcif.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,8 @@ def make_bcif():
12961296
'encoding':
12971297
[{'kind': 'IntegerPacking'},
12981298
{'kind': 'ByteArray',
1299-
'type': ihm.format_bcif._Int8}]},
1299+
'type': ihm.format_bcif._Int8,
1300+
'min': 1.0}]},
13001301
'mask': None}
13011302
return {'dataBlocks': [{'categories': [{'name': '_foo',
13021303
'columns': [c1]}]}]}
@@ -1349,6 +1350,9 @@ def run_test(read_sz, ind=-1, cat='_foo'):
13491350
# Exception in read_bcif_exact_string (str=0xdb)
13501351
self.assertRaises(IndexError, run_test, [], ind=0xdb)
13511352

1353+
# Exception in read_bcif_any_double (float=0xca)
1354+
self.assertRaises(IndexError, run_test, [], ind=0xca)
1355+
13521356
# Exception in read_bcif_string_dup (107=index of column name's
13531357
# string size)
13541358
self.assertRaises(IndexError, run_test, [107])

0 commit comments

Comments
 (0)