@@ -18,19 +18,19 @@ TEST(OutlinedHashTreeTest, Empty) {
18
18
OutlinedHashTree HashTree;
19
19
EXPECT_TRUE (HashTree.empty ());
20
20
// The header node is always present.
21
- EXPECT_EQ (HashTree.size (), 1 );
22
- EXPECT_EQ (HashTree.depth (), 0 );
21
+ EXPECT_EQ (HashTree.size (), 1u );
22
+ EXPECT_EQ (HashTree.depth (), 0u );
23
23
}
24
24
25
25
TEST (OutlinedHashTreeTest, Insert) {
26
26
OutlinedHashTree HashTree;
27
27
HashTree.insert ({{1 , 2 , 3 }, 1 });
28
28
// The node count is 4 (including the root node).
29
- EXPECT_EQ (HashTree.size (), 4 );
29
+ EXPECT_EQ (HashTree.size (), 4u );
30
30
// The terminal count is 1.
31
- EXPECT_EQ (HashTree.size (/* GetTerminalCountOnly=*/ true ), 1 );
31
+ EXPECT_EQ (HashTree.size (/* GetTerminalCountOnly=*/ true ), 1u );
32
32
// The depth is 3.
33
- EXPECT_EQ (HashTree.depth (), 3 );
33
+ EXPECT_EQ (HashTree.depth (), 3u );
34
34
35
35
HashTree.clear ();
36
36
EXPECT_TRUE (HashTree.empty ());
@@ -39,7 +39,7 @@ TEST(OutlinedHashTreeTest, Insert) {
39
39
HashTree.insert ({{1 , 2 , 4 }, 2 });
40
40
// The nodes of 1 and 2 are shared with the same prefix.
41
41
// The nodes are root, 1, 2, 3 and 4, whose counts are 5.
42
- EXPECT_EQ (HashTree.size (), 5 );
42
+ EXPECT_EQ (HashTree.size (), 5u );
43
43
}
44
44
45
45
TEST (OutlinedHashTreeTest, Find) {
@@ -48,10 +48,10 @@ TEST(OutlinedHashTreeTest, Find) {
48
48
HashTree.insert ({{1 , 2 , 3 }, 2 });
49
49
50
50
// The node count does not change as the same sequences are added.
51
- EXPECT_EQ (HashTree.size (), 4 );
51
+ EXPECT_EQ (HashTree.size (), 4u );
52
52
// The terminal counts are accumulated from two same sequences.
53
53
EXPECT_TRUE (HashTree.find ({1 , 2 , 3 }));
54
- EXPECT_EQ (HashTree.find ({1 , 2 , 3 }).value (), 3 );
54
+ EXPECT_EQ (HashTree.find ({1 , 2 , 3 }).value (), 3u );
55
55
EXPECT_FALSE (HashTree.find ({1 , 2 }));
56
56
}
57
57
0 commit comments