JuliaGraphics / ColorTypes.jl

Basic color definitions and traits
Other
77 stars 35 forks source link

Fix "broken" test which may succeed unintentionally #226

Closed kimikage closed 3 years ago

kimikage commented 3 years ago

Theoretically, there is still a chance of unintentional success, but the probability is small enough.

julia> rand(Gray{Q3f12})  # returns a negative value about 50% of the time.
Gray{Q3f12}(-0.3162Q3f12)

Fixes #225

codecov[bot] commented 3 years ago

Codecov Report

Merging #226 (5fab8eb) into master (db220de) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #226   +/-   ##
=======================================
  Coverage   95.38%   95.38%           
=======================================
  Files           8        8           
  Lines         758      758           
=======================================
  Hits          723      723           
  Misses         35       35           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update db220de...5fab8eb. Read the comment docs.