Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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