abstreet/sim/tests/completion.rs
2018-10-02 16:34:27 -07:00

18 lines
478 B
Rust

extern crate abstutil;
extern crate control;
extern crate map_model;
extern crate sim;
#[test]
fn aorta_model_completes() {
let (map, control_map, mut sim) = sim::load(
sim::SimFlags::for_test("aorta_model_completes"),
Some(sim::Tick::from_seconds(30)),
);
sim.small_spawn(&map);
sim.run_until_done(&map, &control_map, Box::new(|_sim| {}));
}
// TODO other tests (not completion) to add:
// - different behavior (stopping or not) at stop signs