# 0aafd637a2c2a13456a1e545234e8f03cf7caa5db32b0a8a590007caf07a27a9 Elan 1.8.2 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
