ArchiveDB: add a contains() test for long history test case

This commit is contained in:
Guanqun Lu 2017-06-10 00:13:50 +08:00
parent ed20fa4da1
commit 7f07f7d567

View File

@ -239,6 +239,7 @@ mod tests {
jdb.commit_batch(3, &b"3".sha3(), Some((0, b"0".sha3()))).unwrap(); jdb.commit_batch(3, &b"3".sha3(), Some((0, b"0".sha3()))).unwrap();
assert!(jdb.contains(&h)); assert!(jdb.contains(&h));
jdb.commit_batch(4, &b"4".sha3(), Some((1, b"1".sha3()))).unwrap(); jdb.commit_batch(4, &b"4".sha3(), Some((1, b"1".sha3()))).unwrap();
assert!(jdb.contains(&h));
} }
#[test] #[test]