test/test_image.rb in rays-0.1.33 vs test/test_image.rb in rays-0.1.34
- old
+ new
@@ -21,11 +21,12 @@
def bounds(*args)
Rays::Bounds.new(*args)
end
def test_initialize()
- assert_equal 10, image(10, 20).width
- assert_equal 10, image(20, 10).height
+ assert_equal 10, image(10, 20).width
+ assert_equal 20, image(10, 20).height
+ assert_equal [10, 20], image(10, 20).size
end
def test_dup()
o = image 10, 10
assert_equal color(0, 0, 0, 0), o[0, 0]