test/image_test.rb in ray-0.2.0 vs test/image_test.rb in ray-0.2.1
- old
+ new
@@ -23,9 +23,13 @@
asserts(:[], 100, 192).nil
asserts(:[]=, 128, 100, Ray::Color.green).raises_kind_of RangeError
asserts(:[]=, 100, 192, Ray::Color.green).raises_kind_of RangeError
+ asserts(:bind_to, -1).raises_kind_of RangeError
+ asserts(:bind_to, 32).raises_kind_of RangeError
+ denies(:bind_to, 31).raises_kind_of RangeError
+
context "after changing a pixel" do
hookup { topic[0, 10] = Ray::Color.green }
asserts(:[], 0, 10).equals Ray::Color.green
denies(:[], 1, 10).equals Ray::Color.green
end