def consume_empty_bitmap(): x = (0,0) res,n = bitmap.consume(x, 8) if n == 0 and res == x: raise Success
def consume_zero_bitmap_signed(): x = (0x41424344,-32) res,n = bitmap.consume(x, 0) if n == 0 and res == x: raise Success
def consume_unsigned_bitmap_signed(): x = (0x41424344,-32) res,n = bitmap.consume(x, 8) if n == 0x44 and res == (0x414243,-24): raise Success
def consume_signed_bitmap_signed(): x = (0x414243ff,-32) res,n = bitmap.consume(x, 8) if n == -1 and res == (0x414243,-24): raise Success
def consume_signed_bitmap_unsigned(): x = (0x414243ff,32) res,n = bitmap.consume(x, 8) if n == 0xff and res == (0x414243,24): raise Success