Skip to content

Commit

Permalink
Add test case for points with gap validation behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mzur committed Jan 19, 2024
1 parent 576f6df commit 16d1f2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/php/VideoAnnotationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ public function testValidatePointsFramesMismatch()
$this->model->validatePoints();
}

public function testValidatePointsWithGap()
{
$this->expectNotToPerformAssertions();
$this->model->points = [[10, 10], [], [20, 20]];
$this->model->frames = [0.0, null, 1.0];
$this->model->validatePoints();
}

public function testValidatePointsPoint()
{
$this->model->shape_id = Shape::pointId();
Expand Down

0 comments on commit 16d1f2a

Please sign in to comment.