From 4c68867836ba7166af88309d19e3a1e109772b2e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 30 Oct 2017 09:27:53 -0700 Subject: partially add 'tree' to drive tests --- src/drive.rs | 8 ++++++++ 1 file changed, 8 insertions(+) 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] -- cgit v1.2.3