mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Drop threshold back down to a passing 10
This commit is contained in:
@@ -5,7 +5,7 @@ class TestColorThreshold < Minitest::Test
|
||||
|
||||
def test_color_threshold
|
||||
langs_with_colors = Language.all.reject { |language| language.color.nil? }
|
||||
cp = ColorProximity.new(20, langs_with_colors.map(&:color))
|
||||
cp = ColorProximity.new(10, langs_with_colors.map(&:color))
|
||||
failing_threshold = []
|
||||
langs_with_colors.each do |lang|
|
||||
state = cp.within_threshold?(lang.color[1..-1])
|
||||
|
Reference in New Issue
Block a user