summaryrefslogtreecommitdiff
path: root/test/core/UtilsTest.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-03 00:57:57 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-12-03 00:57:57 +0100
commit41366eb61e5b85524b8ee07ae183df4f9f8a1f6d (patch)
treeac9468e4adc6cfcb63b4adc324770dc07de0e5aa /test/core/UtilsTest.cpp
parent314e97ac5307f5053fc0c31ec23c39ba9c9a0aac (diff)
parented79df8f263dcd973c8ceb016b516644d87d8aa8 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'test/core/UtilsTest.cpp')
-rw-r--r--test/core/UtilsTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/core/UtilsTest.cpp b/test/core/UtilsTest.cpp
index 4f754a5..0a7d2a3 100644
--- a/test/core/UtilsTest.cpp
+++ b/test/core/UtilsTest.cpp
@@ -31,5 +31,13 @@ TEST(Utils, isIdentifier)
ASSERT_FALSE(Utils::isIdentifier("0t-_EST"));
}
+TEST(Utils, trim)
+{
+ ASSERT_EQ("hello world", Utils::trim("\t hello world \n\r\t"));
+ ASSERT_EQ("hello world", Utils::trim("hello world \n\r\t"));
+ ASSERT_EQ("hello world", Utils::trim(" hello world"));
+ ASSERT_EQ("hello world", Utils::trim("hello world"));
+}
+
}