nalgebra/nalgebra-macros/tests/tests.rs

10 lines
295 B
Rust
Raw Normal View History

use nalgebra_macros::matrix;
2021-04-11 23:29:33 +08:00
use nalgebra::Matrix3x2;
#[test]
2021-04-11 23:29:33 +08:00
fn matrix_basic_construction() {
let matrix: Matrix3x2<_> = matrix![ 1, 2;
3, 4;
5, 6 ];
assert_eq!(matrix, Matrix3x2::new(1, 2, 3, 4, 5, 6));
}