You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2018/12/20 23:10:45 UTC
[geode-native] branch develop updated: GEODE-6218: Fixes UTF-8
string literal.
This is an automated email from the ASF dual-hosted git repository.
jbarrett pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new 2f6bfe4 GEODE-6218: Fixes UTF-8 string literal.
2f6bfe4 is described below
commit 2f6bfe4eea70ce2d350ef44cdbee7e65f30102cb
Author: Jacob Barrett <jb...@pivotal.io>
AuthorDate: Thu Dec 20 15:10:21 2018 -0800
GEODE-6218: Fixes UTF-8 string literal.
---
cppcache/test/util/functionalTests.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cppcache/test/util/functionalTests.cpp b/cppcache/test/util/functionalTests.cpp
index 9c18bae..1cd483c 100644
--- a/cppcache/test/util/functionalTests.cpp
+++ b/cppcache/test/util/functionalTests.cpp
@@ -33,11 +33,11 @@ TEST(string, geode_hash) {
EXPECT_EQ(57, hash("9"));
EXPECT_EQ(1077910243, hash("supercalifragilisticexpialidocious"));
- EXPECT_EQ(1544552287, hash("You had me at meat tornad\u00F6!\U000F0000"));
+ EXPECT_EQ(1544552287, hash(u8"You had me at meat tornad\u00F6!\U000F0000"));
auto str = std::string("You had me at");
str.push_back(0);
- str.append("meat tornad\u00F6!\U000F0000");
+ str.append(u8"meat tornad\u00F6!\U000F0000");
EXPECT_EQ(701776767, hash(str));
}