# 2b9a34cbf2639d196a599f92d5cd1d29514ff1cc7c061f6968af9c2d7d32f2e8 Elan 1.7.0 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
