Skip to content

Commit cbb7925

Browse files
committed
add test (compilation is broken)
1 parent adfef66 commit cbb7925

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/ndg_make.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
use ndarray::array;
2+
3+
use csaps::GridCubicSmoothingSpline;
4+
5+
6+
#[test]
7+
fn test_make_surface() {
8+
let x0 = array![1., 2., 3.];
9+
let x1 = array![1., 2., 3., 4.];
10+
11+
let x = vec![&x0, &x1];
12+
13+
let y = array![
14+
[1., 2., 3., 4.],
15+
[5., 6., 7., 8.],
16+
[9., 10., 11., 12.],
17+
];
18+
19+
let spline = GridCubicSmoothingSpline::new(&x, &y)
20+
.make().unwrap();
21+
}

0 commit comments

Comments
 (0)