()
| 1034 | |
| 1035 | #[test_case] |
| 1036 | fn pathbuf_with_capacity() { |
| 1037 | let mut path = PathBuf::with_capacity(10); |
| 1038 | let capacity = path.capacity(); |
| 1039 | // This push is done without reallocating |
| 1040 | path.push(r"/test"); |
| 1041 | assert_eq!(capacity, path.capacity()); |
| 1042 | } |
| 1043 | |
| 1044 | #[test_case] |
| 1045 | fn pathbuf_as_path() { |