/// Tests that a parsed diagram's nodes and Coxeter matrix match expected
/// values.
Tests that a parsed diagram's nodes and Coxeter matrix match expected
values.
Tests that a parsed diagram ' s nodes and Coxeter matrix match expected values .
fn test(diagram: &str, nodes: Vec<Node<f32>>, matrix: Matrix<f32>) {
        let cd = Cd::parse(diagram).unwrap();
        assert_eq!(cd.nodes(), nodes, "Node mismatch!");
        assert_eq!(cd.cox(), Cox::new(matrix), "Coxeter matrix mismatch!");
    }
fn test ( diagram : & str , nodes : Vec < Node < f32 > > , matrix : Matrix < f32 > ) { let cd = Cd :: parse ( diagram ) . unwrap ( ) ; assert_eq ! ( cd nodes ( ) nodes " " ) ; assert_eq ! ( cd cox ( ) Cox new ( matrix ) " " ) ; }
Tests that a parsed diagram's nodes and Coxeter matrix match expected
values.
Tests that a parsed diagram ' s nodes and Coxeter matrix match expected values .
diagram
&str
nodes
Vec<Node<f32>>
matrix
Matrix<f32>