From 6ad9c5ee7663dbfabaa872dbb14afa6fa04906a5 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 8 Dec 2014 00:58:28 +0100 Subject: [PATCH] Small fixes to the parser tests. --- test/test_api/test_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_api/test_api.py b/test/test_api/test_api.py index 1719413f..65a6794e 100644 --- a/test/test_api/test_api.py +++ b/test/test_api/test_api.py @@ -79,7 +79,10 @@ def test_completion_on_number_literals(): def test_completion_on_hex_literals(): assert api.Script('0x1..').completions() == [] _check_number('0x1.', 'int') # hexdecimal - _check_number('0b3.', 'int') # binary + # Completing binary literals doesn't work if they are not actually binary + # (invalid statements). + assert api.Script('0b2.').completions() == [] + _check_number('0b1.', 'int') # binary _check_number('0o7.', 'int') # octal _check_number('0x2e.', 'int')