Bump threshold to 0.05

This commit is contained in:
Garen Torikian
2015-04-06 09:44:10 -07:00
parent 6bd8d3a3b7
commit 3c96f9eb53
2 changed files with 56 additions and 56 deletions

View File

@@ -9,7 +9,7 @@ class TestColorProximity < Minitest::Test
def test_color_proximity
langs_with_colors = Language.all.reject { |language| language.color.nil? }
cp = ColorProximity.new(0.02, langs_with_colors.map { |lang| cut_hash(lang.color) })
cp = ColorProximity.new(0.05, langs_with_colors.map { |lang| cut_hash(lang.color) })
failing_threshold = langs_with_colors.map do |lang|
state = cp.past_threshold?(cut_hash(lang.color))
if !state.first && lang.color != "##{state.last.first}"