|
|
@@ -91,10 +91,10 @@ TEST_F(MetaBase, SetGetWithMutatingThis) {
|
|
|
ASSERT_TRUE(any.set("value_2"_hs, 2));
|
|
|
ASSERT_TRUE(any.set("value_3"_hs, 3));
|
|
|
|
|
|
- ASSERT_FALSE(any.type().set("value"_hs, as_cref, 0));
|
|
|
- ASSERT_FALSE(any.type().set("value_1"_hs, as_cref, 0));
|
|
|
- ASSERT_FALSE(any.type().set("value_2"_hs, as_cref, 0));
|
|
|
- ASSERT_FALSE(any.type().set("value_3"_hs, as_cref, 0));
|
|
|
+ ASSERT_FALSE(as_cref.set("value"_hs, 0));
|
|
|
+ ASSERT_FALSE(as_cref.set("value_1"_hs, 0));
|
|
|
+ ASSERT_FALSE(as_cref.set("value_2"_hs, 0));
|
|
|
+ ASSERT_FALSE(as_cref.set("value_3"_hs, 0));
|
|
|
|
|
|
ASSERT_EQ(any.get("value"_hs).cast<int>(), 42);
|
|
|
ASSERT_EQ(any.get("value_1"_hs).cast<const int>(), 1);
|