Skip to content

Commit 1fe8f08

Browse files
author
Paul Davis
committed
Test for invalid octal.
I added a test that catches the JSError generated by invalid octal. Ricardo, can you confirm whether this test passes or fails? You can run the tests like such: $ python setup.py test [#12 state:open]
1 parent c29ad86 commit 1fe8f08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test-syntax-error.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ def test_syntax_error(cx):
1616
except:
1717
line = traceback.format_exc().split("\n")[-3].strip()
1818
t.eq(line, ERROR)
19+
20+
@t.cx()
21+
def test_invalid_octal(cx):
22+
t.raises(t.JSError, cx.execute, "09;")
23+

0 commit comments

Comments
 (0)