2018-08-09 22:53:12 +03:00
|
|
|
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(
|
2018-09-25 00:38:20 +03:00
|
|
|
"../data/maps/small.abst".to_string(),
|
2018-08-27 23:29:00 +03:00
|
|
|
"aorta_model_completes".to_string(),
|
|
|
|
Some(42),
|
|
|
|
Some(sim::Tick::from_seconds(30)),
|
|
|
|
);
|
2018-09-01 01:03:15 +03:00
|
|
|
sim.small_spawn(&map);
|
|
|
|
sim.run_until_done(&map, &control_map, Box::new(|_sim| {}));
|
2018-08-09 22:53:12 +03:00
|
|
|
}
|
2018-08-24 22:53:21 +03:00
|
|
|
|
|
|
|
// TODO other tests (not completion) to add:
|
|
|
|
// - different behavior (stopping or not) at stop signs
|