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
7 changes: 7 additions & 0 deletions tests/syntax/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ def test_no_ego():
compileScenic("new Object")


def test_new_in_list_expression():
compileScenic(
"objs = [new Object with allowCollisions True]\n"
"ego = new Object with allowCollisions True"
)


def test_ego_complex_assignment():
with pytest.raises(ScenicSyntaxError):
compileScenic("(ego, thing1), thing2 = ((new Object at 1@1), 2), 3")
Expand Down
Loading