Skip to content

Commit 3c6d155

Browse files
committed
Add initial tree size check
1 parent e376ff9 commit 3c6d155

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/IntervalTreeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function testFindAnyIntersection(): void
5959
public function testRemove(): void
6060
{
6161
$initialSize = $this->tree->getSize();
62+
self::assertEquals(count($this->intervals), $initialSize);
6263
self::assertTrue($this->tree->remove(Interval::fromArray([7, 8]), '7-8'));
6364
self::assertEquals($this->tree->getSize(), --$initialSize);
6465
self::assertFalse($this->tree->remove(Interval::fromArray([1, 4]), '1-3'));

0 commit comments

Comments
 (0)