()
| 1209 | |
| 1210 | #[test] |
| 1211 | fn test_deeply_nested_path() { |
| 1212 | let wc = Memory::new(); |
| 1213 | let deep_path = "a/b/c/d/e/f/g/h/i/j/file.txt"; |
| 1214 | wc.add_file(deep_path, b"deep"); |
| 1215 | |
| 1216 | assert!(wc.exists(deep_path)); |
| 1217 | assert!(wc.is_directory("a/b/c/d/e/f/g/h/i/j")); |
| 1218 | } |
| 1219 | |
| 1220 | #[test] |
| 1221 | fn test_get_contents_of_directory_returns_none() { |