summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-12 02:15:45 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-12-12 02:15:45 +0100
commit58b0dcbaabb36df43b4bfa4c74a963d8b24a54fe (patch)
treea8f3434605966abd1986dd40346102f5d2db3e78 /test
parent8384132e9f8d70c0d23cb1c37e51b064405a1a6d (diff)
fixed bug in Utils::isIdentifier and added regression test
Diffstat (limited to 'test')
-rw-r--r--test/core/common/UtilsTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/core/common/UtilsTest.cpp b/test/core/common/UtilsTest.cpp
index 2858038..66458b2 100644
--- a/test/core/common/UtilsTest.cpp
+++ b/test/core/common/UtilsTest.cpp
@@ -29,6 +29,7 @@ TEST(Utils, isIdentifier)
ASSERT_TRUE(Utils::isIdentifier("_t0-_EST"));
ASSERT_FALSE(Utils::isIdentifier("-t0-_EST"));
ASSERT_FALSE(Utils::isIdentifier("0t-_EST"));
+ ASSERT_FALSE(Utils::isIdentifier("invalid key"));
}
TEST(Utils, trim)