Sha256: 896d85cec75856a3b989920d321927babda308ffe2c037db4288e3cb122b885d
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
# encoding: UTF-8 require './test_helper' require 'test/unit' class RGBQuadTest < Test::Unit::TestCase def test_create color = FreeImage::RGBQuad.create(1,2,3,4) assert_equal(color[:red], 1) assert_equal(color[:green], 2) assert_equal(color[:blue], 3) assert_equal(color[:reserved], 4) end def test_= color1 = FreeImage::RGBQuad.create(1,2,3,4) color2 = FreeImage::RGBQuad.create(1,2,3,4) assert_equal(color1, color2) end def test_eql color1 = FreeImage::RGBQuad.create(1,2,3,4) color2 = FreeImage::RGBQuad.create(1,2,3,4) assert(color1.eql?(color2)) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
free-image-0.6.2 | test/test_rgb_quad.rb |
free-image-0.6.1 | test/test_rgb_quad.rb |
free-image-0.6.0 | test/test_rgb_quad.rb |
free-image-0.5.0 | test/test_rgb_quad.rb |