Skip to content

Commit

Permalink
test: uniqueness of sparseindex cache prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Dec 20, 2024
1 parent 0dcc471 commit 628bf71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/volumes/test_sparsemap_cache_uniqueness.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
from siibra.volumes.sparsemap import SparseMap


def test_cache_prefixes():
sparsemaps = [
mp for mp in siibra.maps
if isinstance(mp, siibra.volumes.sparsemap.SparseMap)
]
assert len(sparsemaps) == len([mp._cache_prefix for mp in sparsemaps])


def test_sparsemap_cache_uniqueness():
mp157 = siibra.get_map("julich 3.0", "colin 27", "statistical", spec="157")
mp175 = siibra.get_map("julich 3.0", "colin 27", "statistical", spec="175")
Expand Down

0 comments on commit 628bf71

Please sign in to comment.