aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-30 09:27:53 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-30 09:27:53 -0700
commit4c68867836ba7166af88309d19e3a1e109772b2e (patch)
tree4081eb006a65003f88035ac107e78bcb9d19ae5d /src
parentd07af00d76524ff57e043f2fd1c23421ce96790e (diff)
downloadgeniza-4c68867836ba7166af88309d19e3a1e109772b2e.tar.gz
geniza-4c68867836ba7166af88309d19e3a1e109772b2e.zip
partially add 'tree' to drive tests
Diffstat (limited to 'src')
-rw-r--r--src/drive.rs8
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]