Skip to content

Commit

Permalink
added test to check value error
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Nov 6, 2022
1 parent 720815b commit 784ef53
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_metric_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Union

import numpy as np
import pytest

from laptrack._typing_utils import IntArray
from laptrack.metric_utils import LabelOverlap
Expand Down Expand Up @@ -39,3 +40,5 @@ def test_label_overlap() -> None:
(intersect / r1),
(intersect / r2),
) == res
with pytest.raises(ValueError):
LabelOverlap(np.array([[1, 2], [0, 1]]))

0 comments on commit 784ef53

Please sign in to comment.