Sha256: 1c6a06ed3bdc7ff7e51231005909b602ec6470acbb501646b1800f878040387e

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper.rb'
require 'sgl'

describe SGL do
  it "should return" do
    t = SGL::ColorTranslatorRGB.new(100, 100, 100, 100)
    t.norm(100, 100, 100).should == [1.0, 1.0, 1.0, 1.0]
    t.norm(100, 0, 0).should == [1.0, 0.0, 0.0, 1.0]

    t = SGL::ColorTranslatorHSV.new(100, 100, 100, 100)
    t.norm(100, 100, 100).should == [1.0, 0.0, 0.0, 1.0]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sgl-1.0.0 spec/sgl_spec.rb