Arfon Smith
69b68f3a44
Extracting common methods into helper.
2015-01-26 16:22:55 -06:00
Adam Roben
65296e86a3
Switch to Minitest::Test instead of Test::Unit::TestCase
...
This gives us a consistent test framework across all Ruby versions which
should help avoid errors that are only found when CI runs the tests on
different Rubies. (And this fixes an immediate bug where there's no
`skip` method in the version of test-unit we're currently using only on
Ruby 2.2.)
2014-12-31 15:26:26 -05:00
Brandon Keepers
aa7ab2065b
Add test helper to make test env consistent
2014-11-18 16:46:09 -05:00
Brandon Keepers
015af19eaf
Move Samples::DATA constant to Samples.cache method
2014-09-16 10:25:30 -04:00
Joshua Peek
16a67cb852
Move shebang detection into classifier
...
Fixes #203
2012-08-03 15:07:36 -05:00
Joshua Peek
7b6caa0f6c
Rename samples subdirectories
2012-07-23 15:52:49 -05:00
Joshua Peek
5cda67530d
Seperate test file for samples
2012-07-23 13:55:30 -05:00
Joshua Peek
6842044b52
Store md5 in samples db
2012-07-23 13:50:35 -05:00
Joshua Peek
bf944f6d1a
Make classify a function on the Classifier
2012-07-23 13:47:15 -05:00
Joshua Peek
b9779e805e
Move outdated check to samples
2012-07-23 13:21:30 -05:00
Joshua Peek
80e8ee7ce6
Rename Sample -> Samples
2012-07-23 13:15:27 -05:00
Joshua Peek
0c9a947f39
Load classifer db into sample data hash
2012-07-23 13:13:52 -05:00
Joshua Peek
3172bf5b46
Remove gc for now
2012-07-23 12:23:20 -05:00
Joshua Peek
5b28336d56
Move db verification into tests
2012-07-23 12:21:26 -05:00
Joshua Peek
b7f58d96cb
Compare md5s of dbs
2012-07-23 12:17:32 -05:00
Joshua Peek
eb2c07e511
Sample returns simple hash objects
2012-07-20 16:17:37 -05:00
Joshua Peek
7292bdc180
Change Classifier to accept language name Strings
2012-07-20 15:52:27 -05:00
Joshua Peek
bbc5225086
Pending samples work now
2012-07-20 15:36:48 -05:00
Joshua Peek
2637d8dc55
Add tokenize helper to Tokenize class
2012-07-20 15:14:58 -05:00
Joshua Peek
5521dd08a0
Move test fixtures to samples/
2012-06-22 10:09:24 -05:00
Joshua Peek
2b712dc790
Guard against classify nil data
2012-06-21 11:47:32 -05:00
Joshua Peek
516a220d9f
Verify classifer counts
2012-06-20 15:48:46 -05:00
Joshua Peek
e9eae4e008
Skip pending tests
2012-06-20 11:19:02 -05:00
Joshua Peek
c114d710f8
Test classifier on ambiguous languages
2012-06-19 16:32:56 -05:00
Joshua Peek
ddf3ec4a5b
Warn if classifier instance is out of date
2012-06-19 14:32:04 -05:00
Joshua Peek
d566b35020
Allow classifer languages to be scoped
2012-06-19 14:21:42 -05:00
Joshua Peek
8f85a447de
Allow tokens to be passed directly to classify
2012-06-19 14:17:27 -05:00
Joshua Peek
8a75d4d208
GC classifier db
2012-06-08 16:04:43 -05:00
Joshua Peek
9ecab364d1
Dump classifier results
2012-06-08 14:13:26 -05:00
Joshua Peek
e0c777d995
Fix test name
2012-06-08 13:43:37 -05:00
Joshua Peek
f747b49347
Add simple classifier
2012-06-07 17:10:28 -05:00