diff options
-rw-r--r-- | src/drive.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/drive.rs b/src/drive.rs index a14057e..9826980 100644 --- a/src/drive.rs +++ b/src/drive.rs @@ -171,6 +171,14 @@ fn test_dd_open() { assert_eq!(dd.history(0).count(), 2); assert_eq!(dd.read_dir("/").count(), 1); assert_eq!(dd.read_dir_recursive("/").count(), 1); + + let mut dd = + DatDrive::open(Path::new("test-data/dat/tree/.dat/"), false).unwrap(); + + // verified from dat log + assert_eq!(dd.history(0).count(), 8); + // XXX: assert_eq!(dd.read_dir("/").count(), 2); + // XXX: assert_eq!(dd.read_dir_recursive("/").count(), 6); } #[test] |