all repos — min @ 5fc39730327cc89614af2992a7f95392e9ad5f63

A small but practical concatenative programming language.

tests/binary.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
'test load
'test import

"binary" describe

  (2 3 bitand 2 ==) assert

  (123 bitnot -124 ==) assert

  (2 3 bitor 3 ==) assert

  (2 3 bitxor 1 ==) assert
  
  report
  clear-stack