mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add tokenize helper to Tokenize class
This commit is contained in:
@@ -11,7 +11,7 @@ class TestTokenizer < Test::Unit::TestCase
|
||||
|
||||
def tokenize(data)
|
||||
data = File.read(File.join(samples_path, data.to_s)) if data.is_a?(Symbol)
|
||||
Tokenizer.new(data).tokens
|
||||
Tokenizer.tokenize(data)
|
||||
end
|
||||
|
||||
def test_skip_string_literals
|
||||
|
||||
Reference in New Issue
Block a user