nalgebra/tests/core/macros.rs

12 lines
340 B
Rust
Raw Normal View History

2021-04-30 23:07:21 +08:00
use nalgebra::{dmatrix, dvector, matrix, vector};
#[test]
fn sanity_test() {
// The macros are already tested in `nalgebra-macros`. Here we just test that they compile fine.
let _ = matrix![1, 2, 3; 4, 5, 6];
let _ = dmatrix![1, 2, 3; 4, 5, 6];
let _ = vector![1, 2, 3, 4, 5, 6];
let _ = dvector![1, 2, 3, 4, 5, 6];
2021-05-03 19:50:48 +08:00
}