Skip to content

Commit

Permalink
add test for aforementioned GTA time issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dfremont committed Jan 6, 2024
1 parent fa0551a commit a9d4bc0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/simulators/gta/test_gta.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ def test_bumper_to_bumper(loadLocalScenario):
GTA.Config(scene)


def test_time_near_midnight():
scenario = compileScenic(
f"""
from scenic.simulators.gta.map import setLocalMap
setLocalMap(r"{__file__}", "map.npz")
model scenic.simulators.gta.model
param time = 1439.9
ego = new EgoCar
""",
mode2D=True,
)
scene, _ = scenario.generate(maxIterations=50)
GTA.Config(scene)


def test_make_map(request, tmp_path):
from scenic.simulators.gta.interface import Map

Expand Down

0 comments on commit a9d4bc0

Please sign in to comment.