Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_binariesop.nit
index 3e78914..9806e3d 100644 (file)
@@ -1,13 +1,24 @@
 var a = 5
 var b = 5
 
-print a.bin_and(b) # 5
-print a.bin_or(b)  # 5
-print a.bin_xor(b) # 0
+print a & b
+print a | b
+print a ^ b
 
 a = 0
 b = 5
 
-print a.bin_and(b) # 0
-print a.bin_or(b)  # 5
-print a.bin_xor(b) # 5
\ No newline at end of file
+print a & b
+print a | b
+print a ^ b
+
+print ~a
+
+var c = 5u8
+var d = 5u8
+
+print c & d
+print c | d
+print c ^ d
+
+print ~c