summaryrefslogtreecommitdiff
path: root/test/core/common/UtilsTest.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-08 21:13:40 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-08 21:13:40 +0100
commit89339e77879cb97d5ddecbc21d62e094f9c700fa (patch)
treedf6ab38f6b5fca5242953604e18245f74d435218 /test/core/common/UtilsTest.cpp
parentd710bf02517225662e80eeeaf93149cfe50c872d (diff)
Changed definition of identifier (do not allow them to start with an underscore)
Diffstat (limited to 'test/core/common/UtilsTest.cpp')
-rw-r--r--test/core/common/UtilsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/common/UtilsTest.cpp b/test/core/common/UtilsTest.cpp
index c8f6922..917f45c 100644
--- a/test/core/common/UtilsTest.cpp
+++ b/test/core/common/UtilsTest.cpp
@@ -26,7 +26,7 @@ TEST(Utils, isIdentifier)
{
ASSERT_TRUE(Utils::isIdentifier("test"));
ASSERT_TRUE(Utils::isIdentifier("t0-_est"));
- ASSERT_TRUE(Utils::isIdentifier("_t0-_EST"));
+ ASSERT_FALSE(Utils::isIdentifier("_t0-_EST"));
ASSERT_FALSE(Utils::isIdentifier("-t0-_EST"));
ASSERT_FALSE(Utils::isIdentifier("0t-_EST"));
ASSERT_FALSE(Utils::isIdentifier("invalid key"));