From f82812ab245be9ae1a8f3f39ea5d4b9ff9940bde Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 6 Nov 2016 17:57:35 -0500 Subject: [PATCH] Tests: Fixed unit test that emitted unicode, that 'run_all' dislikes --- test/text.t.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/text.t.cpp b/test/text.t.cpp index 231622824..0f47e9dbb 100644 --- a/test/text.t.cpp +++ b/test/text.t.cpp @@ -53,8 +53,8 @@ int main (int, char**) text = "This ☺ is a test of utf8 line extraction."; lines.clear (); wrapText (lines, text, 7, true); - t.is (lines.size (), (size_t) 7, "wrapText 'This ☺ is a test of utf8 line extraction.' -> total 7 lines"); - t.is (lines[0], "This ☺", "wrapText line 0 -> 'This ☺'"); + t.is (lines.size (), (size_t) 7, "wrapText 'This \\u263a is a test of utf8 line extraction.' -> total 7 lines"); + t.is (lines[0], "This ☺", "wrapText line 0 -> 'This \\u263a'"); t.is (lines[1], "is a", "wrapText line 1 -> 'is a'"); t.is (lines[2], "test of", "wrapText line 2 -> 'test of'"); t.is (lines[3], "utf8", "wrapText line 3 -> 'utf8'"); @@ -74,7 +74,7 @@ int main (int, char**) unsigned int offset = 0; std::string line; extractLine (line, text, 7, true, offset); - t.is (line, "This ☺", "extractLine 7 'This ☺ is a test of utf8 line extraction.' -> 'This ☺'"); + t.is (line, "This ☺", "extractLine 7 'This \\u263a is a test of utf8 line extraction.' -> 'This \\u263a'"); // void extractLine (std::string& text, std::string& line, int length, bool hyphenate, unsigned int& offset) text = "line 1\nlengthy second line that exceeds width";