Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As discovered in #4182, our current testing allows the reuse of colours as our test wasn't catering for the fact that in the event the two colours are the same, the result from
past_threshold?()
would fail and include the same language twice, one for the newly added language and one for the duplicate.This PR addresses that.
With the change to the test I discovered we have four duplicates:
I've adjusted those slightly by picking the language that had its colour set most recently and then:
languages.yml
with the colour,bundle exec ruby test/test_color_proximity.rb
,When that didn't work or was taking too long, I dragged the colour cursor ever-so-slightly and did the same thing again.
The results:
Glyph:
#e4cc98
->#c1ac7f
KRL:
#28431f
->#28430A
Ring:
#0e60e3
->#2D54CB
VCL:
#0298c3
->#148AA8
I think those are close enough to the originals and certainly meet our proximity requirements.
Checklist:
adding new or changing current functionalityfixing a test