Blob Blame History Raw
From a4230865ab744a08fb90ce58c706955dd2ef1f57 Mon Sep 17 00:00:00 2001
From: Kouhei Sutou <kou@clear-code.com>
Date: Thu, 12 Sep 2013 23:14:30 +0900
Subject: [PATCH] gdk3: use divisible value for test to avoid rounding

GitHub: fix #178

Reported by mtasaka. Thanks!!!
---
 gdk3/test/test-gdk-rgba.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdk3/test/test-gdk-rgba.rb b/gdk3/test/test-gdk-rgba.rb
index 4922b3b..8ab33cf 100644
--- a/gdk3/test/test-gdk-rgba.rb
+++ b/gdk3/test/test-gdk-rgba.rb
@@ -18,7 +18,7 @@
 
 class TestGdkRGBA < Test::Unit::TestCase
   def test_to_s
-    rgba = Gdk::RGBA.new(0.1, 0.2, 0.3, 0.5)
-    assert_equal("rgba(26,51,77,0.5)", rgba.to_s)
+    rgba = Gdk::RGBA.new(0.2, 0.4, 0.6, 0.5)
+    assert_equal("rgba(51,102,153,0.5)", rgba.to_s)
   end
 end
-- 
1.8.4