Sha256: 6272ebf7bc2336fc83105571786b6f33954b266174cab123f8ae4828bbbe507e
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true require 'test/unit/testcase' require 'test/unit' if $PROGRAM_NAME == __FILE__ require 'image_voodoo' class TestShapes < Test::Unit::TestCase def test_new_image image = ImageVoodoo.new_image 10, 20, "test.gif" assert_equal 10, image.width assert_equal 20, image.height assert_equal "gif", image.format end def test_square image = ImageVoodoo.new_image 10, 10, "test.gif" image.square 0, 0, 10, 'ff9900' color = image.color_at(0, 0) assert_equal(0xff, color.red) assert_equal(0x99, color.green) assert_equal(0x00, color.blue) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
image_voodoo-0.9.3 | test/test_shapes.rb |
image_voodoo-0.9.2 | test/test_shapes.rb |
image_voodoo-0.9.1 | test/test_shapes.rb |