diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-08 21:13:40 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-08 21:13:40 +0100 |
commit | 89339e77879cb97d5ddecbc21d62e094f9c700fa (patch) | |
tree | df6ab38f6b5fca5242953604e18245f74d435218 /test | |
parent | d710bf02517225662e80eeeaf93149cfe50c872d (diff) |
Changed definition of identifier (do not allow them to start with an underscore)
Diffstat (limited to 'test')
-rw-r--r-- | test/core/common/UtilsTest.cpp | 2 |
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")); |