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

Function test_get_mut

src/matrix.rs:1237–1249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1235
1236 #[test]
1237 fn test_get_mut() {
1238
1239 let mut a = mat![
1240 7, 8, 9;
1241 10, 11, 12
1242 ];
1243
1244 {
1245 let v = a.get_mut(0, 2).unwrap();
1246 *v = 10;
1247 }
1248 assert_eq!(a.row(0).unwrap().to_vec(), vec![7, 8, 10]);
1249 }
1250
1251 #[test]
1252 fn test_similar_matrix() {

Callers

nothing calls this directly

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected