From 89339e77879cb97d5ddecbc21d62e094f9c700fa Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 8 Feb 2015 21:13:40 +0100 Subject: Changed definition of identifier (do not allow them to start with an underscore) --- test/core/common/UtilsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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")); -- cgit v1.2.3