mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-11 08:15:34 +03:00
20 lines
530 B
Rust
20 lines
530 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(
|
|
"../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
|