##// END OF EJS Templates
Add check_complete test for exit....
Tony Fast -
Show More
@@ -215,6 +215,8 b' def test_check_complete():'
215 nt.assert_equal(cc("def a():\n x=1\n global x"), ('invalid', None))
215 nt.assert_equal(cc("def a():\n x=1\n global x"), ('invalid', None))
216 nt.assert_equal(cc("a \\ "), ('invalid', None)) # Nothing allowed after backslash
216 nt.assert_equal(cc("a \\ "), ('invalid', None)) # Nothing allowed after backslash
217 nt.assert_equal(cc("1\\\n+2"), ('complete', None))
217 nt.assert_equal(cc("1\\\n+2"), ('complete', None))
218 nt.assert_equal(cc("1\\\n+2"), ('complete', None))
219 nt.assert_equal(cc("exit"), ('complete', None))
218
220
219 example = dedent("""
221 example = dedent("""
220 if True:
222 if True:
General Comments 0
You need to be logged in to leave comments. Login now