Created
February 7, 2012 11:23
-
-
Save voxik/1759214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 02893caaff791ee1a0fcd765df273235068af43f Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com> | |
Date: Tue, 7 Feb 2012 12:21:49 +0100 | |
Subject: [PATCH] Fix arch dependent test. | |
--- | |
test/Image2.rb | 3 ++- | |
1 files changed, 2 insertions(+), 1 deletions(-) | |
diff --git a/test/Image2.rb b/test/Image2.rb | |
index dedf3a5..d2065e2 100644 | |
--- a/test/Image2.rb | |
+++ b/test/Image2.rb | |
@@ -582,7 +582,8 @@ class Image2_UT < Test::Unit::TestCase | |
end | |
assert_nothing_raised do | |
res = @img.export_pixels_to_str(0, 0, 10, 10, "I", Magick::LongPixel) | |
- assert_equal(10*10*4, res.length) | |
+ # "1.size" used for arch dependent size. | |
+ assert_equal(10*10*1.size, res.length) | |
end | |
assert_nothing_raised do | |
res = @img.export_pixels_to_str(0, 0, 10, 10, "I", Magick::FloatPixel) | |
-- | |
1.7.7.6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment