diff options
| author | Joshua Peek <josh@joshpeek.com> | 2012-06-08 16:04:43 -0500 |
|---|---|---|
| committer | Joshua Peek <josh@joshpeek.com> | 2012-06-08 16:04:43 -0500 |
| commit | 8a75d4d2089fda9bf35ef62f2e13ab75669d0796 (patch) | |
| tree | b7c16a6953ad1b461df2e19f45ba9597b9fb6495 /test | |
| parent | fd8b70ffa4a97af6aded03fdf2433be27d2c96ce (diff) | |
GC classifier db
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_classifier.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_classifier.rb b/test/test_classifier.rb index 2425466..38c4df5 100644 --- a/test/test_classifier.rb +++ b/test/test_classifier.rb @@ -15,7 +15,7 @@ class TestClassifier < Test::Unit::TestCase File.read(File.join(fixtures_path, name)) end - def test_train_and_classify + def test_classify classifier = Classifier.new classifier.train Language["Ruby"], fixture("ruby/foo.rb") classifier.train Language["Objective-C"], fixture("objective-c/Foo.h") @@ -30,6 +30,10 @@ class TestClassifier < Test::Unit::TestCase assert results.first[1] < 0.5, results.first.inspect end + def test_gc + Classifier.instance.gc + end + # def test_instance_classify # Sample.each do |sample| # results = Classifier.instance.classify(sample.data) |
