Sha256: 231b9d7e6293ad4194cbf230b06c582b0d4efba277b37886295bc386589aeecc

Contents?: true

Size: 321 Bytes

Versions: 6

Compression:

Stored size: 321 Bytes

Contents

class ColorsXYZTest < Test::Unit::TestCase
  sub_test_case("#luv_components") do
    test("on ITU-R BT.709 D65 white point") do
      l, u, v = Colors::RGB.new(0r, 0r, 0r).to_xyz.luv_components(Colors::WHITE_POINT_D65)
      assert_in_delta(0, l)
      assert_in_delta(0, u)
      assert_in_delta(0, v)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
red-colors-0.4.0 test/test-xyz.rb
red-colors-0.3.0 test/test-xyz.rb
red-colors-0.2.0 test/test-xyz.rb
red-colors-0.1.3 test/test-xyz.rb
red-colors-0.1.2 test/test-xyz.rb
red-colors-0.1.1 test/test-xyz.rb