Fix #1731 to allow samples with multiple file extension segments.

This commit is contained in:
Lars Brinkhoff
2014-12-05 11:51:33 +01:00
committed by Brandon Keepers
parent 80ed2d6d30
commit 6ae39e50ae
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class TestSamples < Test::Unit::TestCase
if extnames = Samples.cache['extnames'][name]
extnames.each do |extname|
next if extname == '.script!'
assert options['extensions'].include?(extname), "#{name} has a sample with extension (#{extname}) that isn't explicitly defined in languages.yml"
assert options['extensions'].index { |x| x.end_with? extname }, "#{name} has a sample with extension (#{extname}) that isn't explicitly defined in languages.yml"
end
end