thomasp85 / farver

High Performance Colourspace Manipulation in R
https://farver.data-imaginist.com
Other
125 stars 14 forks source link

Channel addition test fails on aarch64/ppc64le #15

Closed QuLogic closed 4 years ago

QuLogic commented 4 years ago

On aarch64 and ppc64le, trying to build farver 2.0.1, the channel addition test fails with:

  -- 1. Failure: adding channel works (@test-manip.R#30)  ------------------------
  add_to_channel(codes_alpha, "alpha", (1:10)/10) not equal to encode_colour(cols, alpha = alpha + (1:10)/10).
  1/10 mismatches
  x[9]: "#7A67EEF1"
  y[9]: "#7A67EEF2"

I guess there is a slight rounding or floating-point difference somewhere.