Drop threshold back down to a passing 10

This commit is contained in:
Garen Torikian
2015-04-01 10:15:10 -07:00
parent 3851b7c016
commit 8a54ce57a5

View File

@@ -5,7 +5,7 @@ class TestColorThreshold < Minitest::Test
def test_color_threshold def test_color_threshold
langs_with_colors = Language.all.reject { |language| language.color.nil? } 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 = [] failing_threshold = []
langs_with_colors.each do |lang| langs_with_colors.each do |lang|
state = cp.within_threshold?(lang.color[1..-1]) state = cp.within_threshold?(lang.color[1..-1])