diff options
| author | Ben Lavender <bhuga@github.com> | 2012-11-18 20:56:06 -0600 |
|---|---|---|
| committer | Ben Lavender <bhuga@github.com> | 2012-11-18 20:56:06 -0600 |
| commit | ec3434cf1d0d02a8fbc61a7c8038970c01b94227 (patch) | |
| tree | 49a04b42f79e36ef0c9b977370a50f24c78b429d /test | |
| parent | d92d208a45d1f1882f1e553a46851df950857976 (diff) | |
Don't explode on invalid shebang
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_tokenizer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_tokenizer.rb b/test/test_tokenizer.rb index af64920..27dde63 100644 --- a/test/test_tokenizer.rb +++ b/test/test_tokenizer.rb @@ -94,6 +94,7 @@ class TestTokenizer < Test::Unit::TestCase assert_equal "SHEBANG#!ruby", tokenize(:"Ruby/ruby.script!")[0] assert_equal "SHEBANG#!ruby", tokenize(:"Ruby/ruby2.script!")[0] assert_equal "SHEBANG#!node", tokenize(:"JavaScript/js.script!")[0] + assert_equal "echo", tokenize(:"Shell/invalid-shebang.sh")[0] end def test_javascript_tokens |
