@@ -16,30 +16,30 @@ namespace {
1616
1717TEST (OutlinedHashTreeTest, Empty) {
1818 OutlinedHashTree HashTree;
19- ASSERT_TRUE (HashTree.empty ());
19+ EXPECT_TRUE (HashTree.empty ());
2020 // The header node is always present.
21- ASSERT_TRUE (HashTree.size () == 1 );
22- ASSERT_TRUE (HashTree.depth () == 0 );
21+ EXPECT_EQ (HashTree.size (), 1 );
22+ EXPECT_EQ (HashTree.depth (), 0 );
2323}
2424
2525TEST (OutlinedHashTreeTest, Insert) {
2626 OutlinedHashTree HashTree;
2727 HashTree.insert ({{1 , 2 , 3 }, 1 });
2828 // The node count is 4 (including the root node).
29- ASSERT_TRUE (HashTree.size () == 4 );
29+ EXPECT_EQ (HashTree.size (), 4 );
3030 // The terminal count is 1.
31- ASSERT_TRUE (HashTree.size (/* GetTerminalCountOnly=*/ true ) == 1 );
31+ EXPECT_EQ (HashTree.size (/* GetTerminalCountOnly=*/ true ), 1 );
3232 // The depth is 3.
33- ASSERT_TRUE (HashTree.depth () == 3 );
33+ EXPECT_EQ (HashTree.depth (), 3 );
3434
3535 HashTree.clear ();
36- ASSERT_TRUE (HashTree.empty ());
36+ EXPECT_TRUE (HashTree.empty ());
3737
3838 HashTree.insert ({{1 , 2 , 3 }, 1 });
3939 HashTree.insert ({{1 , 2 , 4 }, 2 });
4040 // The nodes of 1 and 2 are shared with the same prefix.
4141 // The nodes are root, 1, 2, 3 and 4, whose counts are 5.
42- ASSERT_TRUE (HashTree.size () == 5 );
42+ EXPECT_EQ (HashTree.size (), 5 );
4343}
4444
4545TEST (OutlinedHashTreeTest, Find) {
@@ -48,11 +48,11 @@ TEST(OutlinedHashTreeTest, Find) {
4848 HashTree.insert ({{1 , 2 , 3 }, 2 });
4949
5050 // The node count does not change as the same sequences are added.
51- ASSERT_TRUE (HashTree.size () == 4 );
51+ EXPECT_EQ (HashTree.size (), 4 );
5252 // The terminal counts are accumulated from two same sequences.
53- ASSERT_TRUE (HashTree.find ({1 , 2 , 3 }));
54- ASSERT_TRUE (HashTree.find ({1 , 2 , 3 }).value () == 3 );
55- ASSERT_FALSE (HashTree.find ({1 , 2 }));
53+ EXPECT_TRUE (HashTree.find ({1 , 2 , 3 }));
54+ EXPECT_EQ (HashTree.find ({1 , 2 , 3 }).value (), 3 );
55+ EXPECT_FALSE (HashTree.find ({1 , 2 }));
5656}
5757
5858TEST (OutlinedHashTreeTest, Merge) {
0 commit comments