Skip to content
Open
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
16 changes: 16 additions & 0 deletions tests/syntax/test_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,22 @@ def test_behavior_invoke_multiple():
)


def test_behavior_tuple_invalid():
scenario = compileScenic(
"""
behavior Foo():
take 1
behavior Bar():
take 2
behavior Baz():
do (Foo(), Bar())
ego = new Object with behavior Baz
"""
)
with pytest.raises(TypeError):
sampleEgoActions(scenario, maxSteps=1)


def test_behavior_calls():
"""Ordinary function calls inside behaviors should still work."""
scenario = compileScenic(
Expand Down
Loading