test/image_test.rb in ray-0.1.1 vs test/image_test.rb in ray-0.2.0

- old
+ new

@@ -45,14 +45,14 @@ asserts(:width).equals 64 asserts(:height).equals 128 asserts(:size).equals Ray::Vector2[64, 128] - asserts(:tex_rect, [0, 0, 64, 128]).equals Ray::Rect[0, 0, 1, 1] - asserts(:tex_rect, [0, 0, 32, 128]).equals Ray::Rect[0, 0, 0.5, 1] - asserts(:tex_rect, [0, 0, 64, 64]).equals Ray::Rect[0, 0, 1, 0.5] - asserts(:tex_rect, [32, 32, 32, 32]).equals Ray::Rect[0.5, 0.25, 0.5, 0.25] + asserts(:tex_rect, [0, 0, 64, 128]).equals Ray::Rect[0, 1, 1, -1] + asserts(:tex_rect, [0, 0, 32, 128]).equals Ray::Rect[0, 1, 0.5, -1] + asserts(:tex_rect, [0, 0, 64, 64]).equals Ray::Rect[0, 1, 1, -0.5] + asserts(:tex_rect, [32, 32, 32, 32]).equals Ray::Rect[0.5, 0.75, 0.5, -0.25] denies :smooth? context "after enabling smoothing" do hookup { topic.smooth = true } @@ -77,10 +77,10 @@ asserts(:[], 0, 1).equals Ray::Color.green asserts(:[], 1, 0).equals Ray::Color.blue asserts(:[], 1, 1).equals Ray::Color.white context "saved and loaded again" do - path = path_of("test_save.png") + path = path_of("test_save.tga") setup do topic.write path Ray::Image.new path end