Sha256: fe68816994fc3e41719dc14409c219d049b7717f0c0fdc8f8d36bf557dc87fa6
Contents?: true
Size: 611 Bytes
Versions: 2
Compression:
Stored size: 611 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)) + '/helpers.rb' context "a pixel bus" do img = Ray::Image.new [3, 2] img[0, 0] = Ray::Color.red img[0, 1] = Ray::Color.green img[1, 0] = Ray::Color.blue img[1, 1] = Ray::Color.white img[2, 0] = Ray::Color.cyan img[2, 1] = Ray::Color.yellow pixels = img.to_a setup { Ray::PixelBus.new } asserts(:size).equals 1024 context "resized" do hookup { topic.resize! 500 } asserts(:size).equals 500 end context "a copied image" do setup { topic.copy(img) } asserts(:to_a).equals pixels end end run_tests if __FILE__ == $0
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | test/pixel_bus_test.rb |
ray-0.2.0 | test/pixel_bus_test.rb |