mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Guard against classify nil data
This commit is contained in:
@@ -55,6 +55,10 @@ class TestClassifier < Test::Unit::TestCase
|
||||
assert results.first[1] < 0.5, results.first.inspect
|
||||
end
|
||||
|
||||
def test_instance_classify_nil
|
||||
assert_equal [], Classifier.instance.classify(nil)
|
||||
end
|
||||
|
||||
def test_verify
|
||||
assert Classifier.instance.verify
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user