From 120099ac5e04e72c628c4880800f0b4a006efa40 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 7 Apr 2014 14:46:26 +0200 Subject: [PATCH] removed the complex number tests somewhere along the line -> reintroduced. --- test/test_api/test_api.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/test_api/test_api.py b/test/test_api/test_api.py index fc41b2bb..2f95d14b 100644 --- a/test/test_api/test_api.py +++ b/test/test_api/test_api.py @@ -85,5 +85,13 @@ def test_completion_on_hex_literals(): _check_number('0xE7.', 'int') _check_number('0xEa.', 'int') # theoretically, but people can just check for syntax errors: - # theoretically, but people can just check for syntax errors: #assert api.Script('0x.').completions() == [] + + +def test_completion_on_complex_literals(): + assert api.Script('1j..').completions() == [] + _check_number('1j.', 'complex') + _check_number('44.j.', 'complex') + _check_number('4.0j.', 'complex') + # No dot no completion + assert api.Script('4j').completions() == []