Skip to content

Commit

Permalink
Update test_cell_space.py
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Sep 21, 2024
1 parent ce182c0 commit 60757b5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_cell_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,3 +500,18 @@ def test_cell_collection():

agents = collection[cells[0]]
assert agents == cells[0].agents


cell = collection.select(at_most=1)
assert len(cell) == 1

cells = collection.select(at_most=2)
assert len(cells) == 2

cells = collection.select(at_most=0.5)
assert len(cells) == 5

cells = collection.select()
assert len(cells) == len(collection)


0 comments on commit 60757b5

Please sign in to comment.