From c72e09e892f8345b376f35ecad92f7390b5bc7a0 Mon Sep 17 00:00:00 2001 From: lola Date: Thu, 30 Oct 2025 12:20:51 -0700 Subject: [PATCH] add test using 'simulator' as a variable name --- tests/syntax/test_basic.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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