diff options
Diffstat (limited to 'Build/source/utils/asymptote/LspCpp/third_party/rapidjson/test/unittest/pointertest.cpp')
-rw-r--r-- | Build/source/utils/asymptote/LspCpp/third_party/rapidjson/test/unittest/pointertest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/LspCpp/third_party/rapidjson/test/unittest/pointertest.cpp b/Build/source/utils/asymptote/LspCpp/third_party/rapidjson/test/unittest/pointertest.cpp index 342086dd10d..4173f15e7e4 100644 --- a/Build/source/utils/asymptote/LspCpp/third_party/rapidjson/test/unittest/pointertest.cpp +++ b/Build/source/utils/asymptote/LspCpp/third_party/rapidjson/test/unittest/pointertest.cpp @@ -1,5 +1,5 @@ // Tencent is pleased to support the open source community by making RapidJSON available. -// +// // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. // // Licensed under the MIT License (the "License"); you may not use this file except @@ -7,9 +7,9 @@ // // http://opensource.org/licenses/MIT // -// Unless required by applicable law or agreed to in writing, software distributed -// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR -// CONDITIONS OF ANY KIND, either express or implied. See the License for the +// Unless required by applicable law or agreed to in writing, software distributed +// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +// CONDITIONS OF ANY KIND, either express or implied. See the License for the // specific language governing permissions and limitations under the License. #include "unittest.h" @@ -475,7 +475,7 @@ TEST(Pointer, CopyConstructor) { EXPECT_EQ(1u, q.GetTokens()[1].length); EXPECT_STREQ("0", q.GetTokens()[1].name); EXPECT_EQ(0u, q.GetTokens()[1].index); - + // Copied pointer needs to have its own allocator EXPECT_NE(&p.GetAllocator(), &q.GetAllocator()); } @@ -837,7 +837,7 @@ TEST(Pointer, Set) { Document d; d.Parse(kJson); Document::AllocatorType& a = d.GetAllocator(); - + // Value version Pointer("/foo/0").Set(d, Value(123).Move(), a); EXPECT_EQ(123, d["foo"][0].GetInt()); @@ -896,7 +896,7 @@ TEST(Pointer, Set) { TEST(Pointer, Set_NoAllocator) { Document d; d.Parse(kJson); - + // Value version Pointer("/foo/0").Set(d, Value(123).Move()); EXPECT_EQ(123, d["foo"][0].GetInt()); @@ -1727,4 +1727,4 @@ TEST(Pointer, Issue1899) { EXPECT_TRUE(PointerType("/foo/1234") == q); q = q.Append(""); EXPECT_TRUE(PointerType("/foo/1234/") == q); -}
\ No newline at end of file +} |