abstreet/sim/tests/completion.rs

20 lines
530 B
Rust
Raw Normal View History

extern crate abstutil;
extern crate control;
extern crate map_model;
extern crate sim;
#[test]
fn aorta_model_completes() {
2018-10-03 00:36:04 +03:00
let (map, control_map, mut sim) = sim::load(
"../data/maps/small.abst".to_string(),
"aorta_model_completes".to_string(),
Some(42),
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