Skip to content

Commit 677e2b9

Browse files
committed
Renamed file and added test for no overlap.
1 parent 3abad36 commit 677e2b9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/overlap_tests.hpp renamed to tests/overlap_find_tests.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ TEST_F(OverlapFindTests, WillFindOverlapWithRootIfTouching)
4040
EXPECT_EQ(tree.overlap_find({7, 9}), std::begin(tree));
4141
}
4242

43+
TEST_F(OverlapFindTests, WillNotFindOverlapIfNothingOverlaps)
44+
{
45+
tree.insert({ 0, 5 });
46+
tree.insert({ 5, 10 });
47+
tree.insert({ 10, 15 });
48+
tree.insert({ 15, 20 });
49+
EXPECT_EQ(tree.overlap_find({77, 99}), std::end(tree));
50+
}
51+
4352
TEST_F(OverlapFindTests, WillFindMultipleOverlaps)
4453
{
4554
tree.insert({ 0, 5 });

0 commit comments

Comments
 (0)