vrp-cli 1.25.0

A command line interface for VRP solver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;
use std::fs::File;

#[test]
pub fn can_get_clusters() {
    let problem = BufReader::new(
        File::open("../examples/data/pragmatic/benches/simple.deliveries.100.json").expect("cannot read problem file"),
    );

    let clusters = get_clusters(problem, None, None, None).expect("cannot get cluster");

    assert!(clusters.contains("features"));
    assert!(clusters.contains("geometry"));
    assert!(clusters.contains("Point"));
}