()
| 1364 | |
| 1365 | #[test] |
| 1366 | fn test_mutable_equal() { |
| 1367 | let mut buf = MutableBuffer::new(1); |
| 1368 | let mut buf2 = MutableBuffer::new(1); |
| 1369 | |
| 1370 | buf.extend_from_slice(&[0xaa]); |
| 1371 | buf2.extend_from_slice(&[0xaa, 0xbb]); |
| 1372 | assert!(buf != buf2); |
| 1373 | |
| 1374 | buf.extend_from_slice(&[0xbb]); |
| 1375 | assert_eq!(buf, buf2); |
| 1376 | |
| 1377 | buf2.reserve(65); |
| 1378 | assert!(buf != buf2); |
| 1379 | } |
| 1380 | |
| 1381 | #[test] |
| 1382 | fn test_mutable_shrink_to_fit() { |
nothing calls this directly
no test coverage detected