Fix for interpreters not getting add to samples.json

This commit is contained in:
Brandon Keepers
2014-11-20 11:14:05 -05:00
parent 231ad86176
commit eccea65641
2 changed files with 6 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ class TestSamples < Test::Unit::TestCase
assert_equal data['languages_total'], data['languages'].inject(0) { |n, (_, c)| n += c }
assert_equal data['tokens_total'], data['language_tokens'].inject(0) { |n, (_, c)| n += c }
assert_equal data['tokens_total'], data['tokens'].inject(0) { |n, (_, ts)| n += ts.inject(0) { |m, (_, c)| m += c } }
assert !data["interpreters"].empty?
end
# Check that there aren't samples with extensions that aren't explicitly defined in languages.yml