diff --git a/tests/syntax/test_basic.py b/tests/syntax/test_basic.py index dd022b208..5db3812f7 100644 --- a/tests/syntax/test_basic.py +++ b/tests/syntax/test_basic.py @@ -330,3 +330,14 @@ class Foo(Bar): obj = sampleEgoFrom(program, mode2D=True) assert obj.heading == obj.parentOrientation.yaw == 0.56 + + +def test_simulator_name_binding_executes(): + scenario = compileScenic( + """ + simulator = 7 + ego = new Object with foo simulator + """ + ) + ego = sampleEgo(scenario) + assert ego.foo == 7