MCPcopy Create free account
hub / github.com/daniel-e/rustml / test_from_iter

Function test_from_iter

src/matrix.rs:1335–1344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1333
1334 #[test]
1335 fn test_from_iter() {
1336
1337 let v = vec![1, 2, 3, 4, 5, 6];
1338 let a = Matrix::from_iter(v.iter(), 3).unwrap();
1339 assert_eq!(a.rows(), 2);
1340 assert_eq!(a.cols(), 3);
1341 let b = Matrix::from_iter(v.iter(), 2).unwrap();
1342 assert_eq!(b.cols(), 2);
1343 assert_eq!(b.rows(), 3);
1344 }
1345
1346 #[test]
1347 fn test_if_then() {

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected