[aseprite] 16/250: Fix split_filename_tests

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:06 UTC 2015


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

thansen pushed a commit to branch master
in repository aseprite.

commit f691b9131014a72393a4381bd4bfa3805574be71
Author: David Capello <davidcapello at gmail.com>
Date:   Tue Sep 1 13:05:41 2015 -0300

    Fix split_filename_tests
---
 src/app/file/split_filename_tests.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/app/file/split_filename_tests.cpp b/src/app/file/split_filename_tests.cpp
index 4d3a32c..8087873 100644
--- a/src/app/file/split_filename_tests.cpp
+++ b/src/app/file/split_filename_tests.cpp
@@ -39,8 +39,11 @@ TEST(SplitFilename, InvalidEraseInLeftPart_Issue784)
   std::string left, right;
   int width;
 
-  EXPECT_EQ(1, split_filename("by \xe3\x81\xa1\xe3\x81\x83\xe3\x81\xbe\\0001.png", left, right, width));
-  EXPECT_EQ("by \xe3\x81\xa1\xe3\x81\x83\xe3\x81\xbe\\", left);
+  std::string sep;
+  sep.push_back(base::path_separator);
+
+  EXPECT_EQ(1, split_filename("by \xE3\x81\xA1\xE3\x81\x83\xE3\x81\xBE\\0001.png", left, right, width));
+  EXPECT_EQ("by \xE3\x81\xA1\xE3\x81\x83\xE3\x81\xBE"+sep, left);
   EXPECT_EQ(".png", right);
   EXPECT_EQ(4, width);
 }

-- 
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