[aseprite] 228/308: Fix color tests

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit ade23a415182533d109bfcb7cbbfe9523739f1af
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Feb 12 14:41:25 2016 -0300

    Fix color tests
---
 src/app/color_tests.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/app/color_tests.cpp b/src/app/color_tests.cpp
index 503b477..ee03307 100644
--- a/src/app/color_tests.cpp
+++ b/src/app/color_tests.cpp
@@ -1,5 +1,5 @@
 // Aseprite
-// Copyright (C) 2001-2015  David Capello
+// Copyright (C) 2001-2016  David Capello
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License version 2 as
@@ -35,7 +35,7 @@ TEST(Color, fromHsv)
 
 TEST(Color, fromString)
 {
-  EXPECT_EQ(Color::fromRgb(0, 0, 0), Color::fromString("rgb{0,0,0}"));
+  EXPECT_EQ(Color::fromRgb(0, 0, 0), Color::fromString("rgb{0,0.0,0}"));
   EXPECT_EQ(Color::fromRgb(32, 16, 255), Color::fromString("rgb{32,16,255}"));
   EXPECT_EQ(Color::fromHsv(32, 64, 99), Color::fromString("hsv{32,64,99}"));
 }
@@ -44,5 +44,5 @@ TEST(Color, toString)
 {
   EXPECT_EQ("rgb{0,0,0,255}", Color::fromRgb(0, 0, 0).toString());
   EXPECT_EQ("rgb{32,16,255,255}", Color::fromRgb(32, 16, 255).toString());
-  EXPECT_EQ("hsv{32,64,99,255}", Color::fromHsv(32, 64, 99).toString());
+  EXPECT_EQ("hsv{32.00,64.00,99.00,255}", Color::fromHsv(32, 64, 99).toString());
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list