# 1fdc52762281458db0eeeffa4fe99c16c1e80f7a7ea43ed429f7c6644d387d96 Elan 1.6.1 guest default_profile valid

test bitwise
  variable a set to 13
  assert a is 0xd
  assert a is 0b1101
  assert a.asBinary() is "1101"
  variable b set to 30
  assert b is 0b11110
  assert bitAnd(a, b) is 0b1100
  variable aob set to bitOr(a, b)
  assert aob is 0b11111
  variable axb set to bitXor(a, b)
  assert axb is 0b10011
  variable nota set to bitNot(a)
  assert nota is -14
  variable aL set to bitShiftL(a, 2)
  assert aL is 0b110100
  assert bitShiftR(a, 2) is 0b11
end test

main

end main
