Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,27 +293,31 @@ def test_intersection_v(self) -> None:

class TestIndexIntersectionUnion:
@pytest.fixture(scope="class")
@classmethod
def index_a_interleaved(self) -> index.Index:
idx = index.Index(interleaved=True)
idx.insert(1, (3, 3, 5, 5), "a_1")
idx.insert(2, (4, 2, 6, 4), "a_2")
return idx

@pytest.fixture(scope="class")
@classmethod
def index_a_uninterleaved(self) -> index.Index:
idx = index.Index(interleaved=False)
idx.insert(1, (3, 5, 3, 5), "a_1")
idx.insert(2, (4, 6, 2, 4), "a_2")
return idx

@pytest.fixture(scope="class")
@classmethod
def index_b_interleaved(self) -> index.Index:
idx = index.Index(interleaved=True)
idx.insert(3, (2, 1, 7, 6), "b_3")
idx.insert(4, (8, 7, 9, 8), "b_4")
return idx

@pytest.fixture(scope="class")
@classmethod
def index_b_uninterleaved(self) -> index.Index:
idx = index.Index(interleaved=False)
idx.insert(3, (2, 7, 1, 6), "b_3")
Expand Down
Loading