mirror of
https://github.com/Tencent/rapidjson.git
synced 2025-10-28 11:31:57 +01:00
Fix Value.String test compilation error
This commit is contained in:
@@ -812,8 +812,10 @@ TEST(Value, String) {
|
|||||||
// Templated function.
|
// Templated function.
|
||||||
EXPECT_TRUE(vs0.Is<std::string>());
|
EXPECT_TRUE(vs0.Is<std::string>());
|
||||||
EXPECT_EQ(str, vs0.Get<std::string>());
|
EXPECT_EQ(str, vs0.Get<std::string>());
|
||||||
EXPECT_EQ(std::string("Apple"), vs0.Set<std::string>(std::string("Apple"), allocator).template Get<std::string>());
|
vs0.Set<std::string>(std::string("Apple"), allocator);
|
||||||
EXPECT_EQ(std::string("Orange"), vs0.Set(std::string("Orange"), allocator).template Get<std::string>());
|
EXPECT_EQ(std::string("Apple"), vs0.Get<std::string>());
|
||||||
|
vs0.Set(std::string("Orange"), allocator);
|
||||||
|
EXPECT_EQ(std::string("Orange"), vs0.Get<std::string>());
|
||||||
}
|
}
|
||||||
#endif // RAPIDJSON_HAS_STDSTRING
|
#endif // RAPIDJSON_HAS_STDSTRING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user