Skip to content

Commit

Permalink
Add more position tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emilydolson committed Jul 15, 2024
1 parent 77af905 commit fcead18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_systematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def test_systematics_by_position():
child_pos = systematics.WorldPosition(2, 0)
child_org = ExampleOrg("hello2")
sys.add_org_by_position(child_org, child_pos, org_pos)
assert sys.get_taxon_at(org_pos).get_info() == "hello"
sys.swap_positions(child_pos, org_pos)
assert sys.get_taxon_at(org_pos).get_info() == "hello2"
sys.swap_positions(child_pos, org_pos)
sys.remove_org_by_position(org_pos)
# sys.remove_org_by_position((2,0))

Expand Down

0 comments on commit fcead18

Please sign in to comment.