summaryrefslogtreecommitdiff
path: root/test/gtest/possible-contents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/gtest/possible-contents.cpp')
-rw-r--r--test/gtest/possible-contents.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/gtest/possible-contents.cpp b/test/gtest/possible-contents.cpp
index 8e07ef8c3..ce5a1ae18 100644
--- a/test/gtest/possible-contents.cpp
+++ b/test/gtest/possible-contents.cpp
@@ -552,9 +552,10 @@ TEST_F(PossibleContentsTest, TestStructCones) {
auto C = types[2];
auto D = types[3];
auto E = types[4];
- ASSERT_TRUE(B.getDeclaredSuperType() == A);
- ASSERT_TRUE(C.getDeclaredSuperType() == A);
- ASSERT_TRUE(D.getDeclaredSuperType() == C);
+ ASSERT_FALSE(A.getDeclaredSuperType());
+ ASSERT_EQ(B.getDeclaredSuperType(), A);
+ ASSERT_EQ(C.getDeclaredSuperType(), A);
+ ASSERT_EQ(D.getDeclaredSuperType(), C);
auto nullA = Type(A, Nullable);
auto nullB = Type(B, Nullable);