Skip to content

Commit

Permalink
Add Python test for AgentVector::getIndex
Browse files Browse the repository at this point in the history
There is no python test suite for DeviceAgentVector, see #557
  • Loading branch information
ptheywood committed Oct 25, 2022
1 parent 66602ec commit 9f30b30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/swig/python/pop/test_agent_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ def test_AgentVector_Agent(self):
assert ai.getVariableInt("int2", 0) == 5
assert ai.getVariableInt("int2", 1) == 6
assert ai.getVariableFloat("float") == 15.0

# check index value is as expected
assert ai.getIndex() == i

# Update values
for i in range(POP_SIZE):
Expand Down

0 comments on commit 9f30b30

Please sign in to comment.