tests: Updated test for byte literals
authorLucas Bajolet <r4pass@hotmail.com>
Wed, 27 May 2015 17:21:40 +0000 (13:21 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Fri, 29 May 2015 14:39:39 +0000 (10:39 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

tests/base_test_bases.nit

index b8a3b90..b21c85e 100644 (file)
@@ -22,3 +22,7 @@ assert 256 == 0x100
 assert 0o400 == 256
 assert 0b1_1100_1101 == 0o715
 assert 0b1_1100_1101 == 0x1_CD
+assert 0b1000_1001 == 0x89
+assert 0b1000_1001u8 == 0x89u8
+assert 0o151u8 == 0b0110_1001u8
+assert 0x69u8 == 0o151u8