sass / sassc-ruby

Use libsass with Ruby!
MIT License
366 stars 156 forks source link

Color functions broken #157

Open amiuhle opened 5 years ago

amiuhle commented 5 years ago

I was able to reproduce #151 using Docker. I added a test case that simply renders a { color: lighten(#abc, 0%); }.

The test is successfull on Ubuntu 14.04 64-bit using this Dockerfile:

FROM ubuntu:14.04
RUN apt-get update -q && apt-get install build-essential git software-properties-common -y
RUN apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update -q && apt-get install ruby2.3 ruby2.3-dev -y
ADD . /sassc-ruby
WORKDIR /sassc-ruby
RUN gem install bundler
RUN bundle install
RUN rake test

But on 14.04 32-bit using this Dockerfile, it fails:

FROM i386/ubuntu:14.04
RUN apt-get update -q && apt-get install build-essential git software-properties-common -y
RUN apt-add-repository ppa:brightbox/ruby-ng
RUN apt-get update -q && apt-get install ruby2.3 ruby2.3-dev -y
ADD . /sassc-ruby
WORKDIR /sassc-ruby
RUN gem install bundler
RUN bundle install
RUN rake test

Output:

SassC::EngineTest#test_color_functions [/sassc-ruby/test/engine_test.rb:320]:
--- expected
+++ actual
@@ -1,3 +1,3 @@
 "a {
-  color: #aabbcc; }
+  color: #ccaaaa; }
 "

Any ideas?

amiuhle commented 5 years ago

Using i386/ubuntu:16.04, the test is also successful.

I'm having this problem on Debian 7.