diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-10-30 09:27:53 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-10-30 09:27:53 -0700 |
commit | 4c68867836ba7166af88309d19e3a1e109772b2e (patch) | |
tree | 4081eb006a65003f88035ac107e78bcb9d19ae5d | |
parent | d07af00d76524ff57e043f2fd1c23421ce96790e (diff) | |
download | geniza-4c68867836ba7166af88309d19e3a1e109772b2e.tar.gz geniza-4c68867836ba7166af88309d19e3a1e109772b2e.zip |
partially add 'tree' to drive tests
-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] |