MCPcopy Create free account
hub / github.com/elftausend/graplot / test_les

Function test_les

tests/les.rs:4–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3#[test]
4fn test_les() {
5 let cols = 2;
6 let (c, e) = (&[-3., 1., 2., 1.], &[-4., -5.]);
7
8 let res = solve_lu(cols, c, e);
9
10 assert_eq!(
11 vec![-0.2, -4.6],
12 res.iter().map(|x| *x as f32).collect::<Vec<f32>>()
13 );
14}

Callers

nothing calls this directly

Calls 1

solve_luFunction · 0.85

Tested by

no test coverage detected