@@ -114,7 +114,7 @@ def test_name():
114114test (t , [2 ], {'a' :False ,'b' :True })
115115test (t , [3 ], {'a' :True ,'b' :True })
116116test (t , [4 ], {'a' :False ,'b' :False })
117- test (Flags ([str (i ) for i in range (33 )]), [0xffffffff , 0x1 ], { str (i ):True for i in range (33 ) })
117+ test (Flags ([str (i ) for i in range (32 )]), [0xffffffff ], { str (i ):True for i in range (32 ) })
118118t = Variant ([Case ('x' ,U8 ()),Case ('y' ,F32 ()),Case ('z' ,None )])
119119test (t , [0 ,42 ], {'x' : 42 })
120120test (t , [0 ,256 ], {'x' : 0 })
@@ -304,12 +304,10 @@ def test_heap(t, expect, args, byte_array):
304304 [0xff ,0xff ,0x1 ,0 , 0 ,0 ,0 ,0 ])
305305test_heap (t , v , [0 ,2 ],
306306 [0xff ,0xff ,0x3 ,0 , 0 ,0 ,0 ,0 ])
307- t = List (Flags ([str (i ) for i in range (33 )]))
308- v = [{ str (i ):b for i in range (33 ) } for b in [True ,False ]]
307+ t = List (Flags ([str (i ) for i in range (32 )]))
308+ v = [{ str (i ):b for i in range (32 ) } for b in [True ,False ]]
309309test_heap (t , v , [0 ,2 ],
310- [0xff ,0xff ,0xff ,0xff ,0x1 ,0 ,0 ,0 , 0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ])
311- test_heap (t , v , [0 ,2 ],
312- [0xff ,0xff ,0xff ,0xff ,0x3 ,0 ,0 ,0 , 0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ])
310+ [0xff ,0xff ,0xff ,0xff , 0 ,0 ,0 ,0 ])
313311
314312def test_flatten (t , params , results ):
315313 expect = CoreFuncType (params , results )
0 commit comments