nalgebra/nalgebra-macros/tests/tests.rs
2021-05-03 13:52:34 +02:00

10 lines
295 B
Rust

use nalgebra_macros::matrix;
use nalgebra::Matrix3x2;
#[test]
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));
}