From 129fea0a763725d07623bda1b505925e1d3db6e6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 23 Mar 2017 01:02:06 -0400 Subject: [PATCH] Tests: Removed strippedLength() tests --- test/util.t.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/util.t.cpp b/test/util.t.cpp index 752cc7f6a..8c0b04b70 100644 --- a/test/util.t.cpp +++ b/test/util.t.cpp @@ -36,7 +36,7 @@ Context context; //////////////////////////////////////////////////////////////////////////////// int main (int, char**) { - UnitTest t (24); + UnitTest t (19); // Ensure environment has no influence. unsetenv ("TASKDATA"); @@ -86,13 +86,6 @@ int main (int, char**) t.ok (nontrivial (" \t\ta"), "nontrivial ' \\t\\ta' -> true"); t.ok (nontrivial ("a\t\t "), "nontrivial 'a\\t\\t ' -> true"); - // int strippedLength (const std::string&); - t.is (strippedLength (std::string ("")), 0, "strippedLength -> 0"); - t.is (strippedLength (std::string ("abc")), 3, "strippedLength abc -> 3"); - t.is (strippedLength (std::string ("one\033[5;38;255mtwo\033[0mthree")), 11, "strippedLength one^[[5;38;255mtwo^[[0mthree -> 11"); - t.is (strippedLength (std::string ("\033[0m")), 0, "strippedLength ^[[0m -> 0"); - t.is (strippedLength (std::string ("\033[1m\033[0m")), 0, "strippedLength ^[[1m^[[0m -> 0"); - return 0; }