commit | 3bdbfdc32d6d9e97b867527f7e5be6a712d1edb6 | [log] [tgz] |
---|---|---|
author | Konstanty Bialkowski <konstanty@ieee.org> | Sun Apr 19 20:09:21 2015 +1000 |
committer | Konstanty Bialkowski <konstanty@ieee.org> | Mon Apr 20 11:59:33 2015 +1000 |
tree | 732f509adb56a6e2ec6373fa45c34275773fbd25 | |
parent | 126492f006edad4dbffda54466e1db679b6700c9 [diff] [blame] |
Allow binary constants (e.g.: 0b01010) - Add lexer and parser tests.
diff --git a/tests/test_c_lexer.py b/tests/test_c_lexer.py index 7f69ac1..6d0b52d 100644 --- a/tests/test_c_lexer.py +++ b/tests/test_c_lexer.py
@@ -75,6 +75,7 @@ self.assertTokensTypes('0123456L', ['INT_CONST_OCT']) self.assertTokensTypes('0xf7', ['INT_CONST_HEX']) + self.assertTokensTypes('0b110', ['INT_CONST_BIN']) self.assertTokensTypes('0x01202AAbbf7Ul', ['INT_CONST_HEX']) # no 0 before x, so ID catches it