Tests for Python multiline comments during tokenization

This commit is contained in:
Paul Chaignon
2014-11-25 20:01:24 -05:00
parent 3ac69ed4e0
commit c5a654e692

View File

@@ -43,6 +43,8 @@ class TestTokenizer < Test::Unit::TestCase
assert_equal %w(foo), tokenize("foo {- Comment -}")
assert_equal %w(foo), tokenize("foo (* Comment *)")
assert_equal %w(%), tokenize("2 % 10\n% Comment")
assert_equal %w(foo bar), tokenize("foo\n\"\"\"\nComment\n\"\"\"\nbar")
assert_equal %w(foo bar), tokenize("foo\n'''\nComment\n'''\nbar")
end
def test_sgml_tags