Merge branch 'master' into add-proximity-test

This commit is contained in:
Garen Torikian
2015-04-02 17:32:00 -07:00
12 changed files with 2137 additions and 8 deletions

View File

@@ -38,6 +38,7 @@ class TestShebang < Minitest::Test
assert_interpreter "perl", "#! perl"
assert_interpreter "ruby", "#!/bin/sh\n\n\nexec ruby $0 $@"
end
assert_interpreter "sh", "#! /usr/bin/env A=003 B=149 C=150 D=xzd E=base64 F=tar G=gz H=head I=tail sh"
end
end

View File

@@ -31,6 +31,8 @@ class TestTokenizer < Minitest::Test
assert_equal %w(foo), tokenize("foo\n# Comment")
assert_equal %w(foo bar), tokenize("foo\n# Comment\nbar")
assert_equal %w(foo), tokenize("foo\n// Comment")
assert_equal %w(foo), tokenize("foo\n-- Comment")
assert_equal %w(foo), tokenize("foo\n\" Comment")
assert_equal %w(foo), tokenize("foo /* Comment */")
assert_equal %w(foo), tokenize("foo /* \nComment\n */")
assert_equal %w(foo), tokenize("foo <!-- Comment -->")