Esempio n. 1
0
 def grow_signed():
     x = (15, -4)
     res = bitmap.grow(x, 4)
     if res == (15 * 2**4, -8) and bitmap.value(res) == -16:
         raise Success
Esempio n. 2
0
 def grow_signed():
     x = (15, -4)
     res = bitmap.grow(x, 4)
     if res == (15*2**4,-8) and bitmap.value(res) == -16:
         raise Success
Esempio n. 3
0
 def grow_unsigned():
     x = (5, 4)
     res = bitmap.grow(x, 4)
     if res == (5 * 2**4, 8) and bitmap.value(res) == 5 * 2**4:
         raise Success
Esempio n. 4
0
 def grow_unsigned():
     x = (5, 4)
     res = bitmap.grow(x, 4)
     if res == (5*2**4,8) and bitmap.value(res) == 5*2**4:
         raise Success