Update test/unittest/pointertest.cpp

Co-Authored-By: yhager <yhager@users.noreply.github.com>
This commit is contained in:
Philipp A. Hartmann 2018-10-31 20:31:04 -07:00 committed by GitHub
parent a77b49dcb8
commit 0cc44c82c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,7 +503,7 @@ TEST(Pointer, Assignment) {
EXPECT_STREQ("0", q.GetTokens()[1].name);
EXPECT_EQ(0u, q.GetTokens()[1].index);
EXPECT_NE(&p.GetAllocator(), &q.GetAllocator());
q = static_cast<Pointer>(q);
q = static_cast<const Pointer &>(q);
EXPECT_TRUE(q.IsValid());
EXPECT_EQ(2u, q.GetTokenCount());
EXPECT_EQ(3u, q.GetTokens()[0].length);