Commit a67bce54 authored by Cholerae Hu's avatar Cholerae Hu Committed by zhangjinpeng1987

tests: add more delete range test cases (#113)

parent 82d127df
...@@ -29,6 +29,7 @@ path = "tests/test.rs" ...@@ -29,6 +29,7 @@ path = "tests/test.rs"
[dependencies] [dependencies]
libc = "0.2.11" libc = "0.2.11"
tempdir = "0.3.4" tempdir = "0.3.4"
crc = "1.2"
[dependencies.librocksdb_sys] [dependencies.librocksdb_sys]
path = "librocksdb_sys" path = "librocksdb_sys"
......
extern crate rocksdb; extern crate rocksdb;
extern crate tempdir; extern crate tempdir;
extern crate byteorder; extern crate byteorder;
extern crate crc;
mod test_iterator; mod test_iterator;
mod test_multithreaded; mod test_multithreaded;
......
This diff is collapsed.
...@@ -245,4 +245,4 @@ fn test_ingest_external_file_new_cf() { ...@@ -245,4 +245,4 @@ fn test_ingest_external_file_new_cf() {
assert_eq!(snap.get_cf(handle, b"k1").unwrap().unwrap(), b"a"); assert_eq!(snap.get_cf(handle, b"k1").unwrap().unwrap(), b"a");
assert_eq!(snap.get_cf(handle, b"k2").unwrap().unwrap(), b"b"); assert_eq!(snap.get_cf(handle, b"k2").unwrap().unwrap(), b"b");
assert_eq!(snap.get_cf(handle, b"k3").unwrap().unwrap(), b"c"); assert_eq!(snap.get_cf(handle, b"k3").unwrap().unwrap(), b"c");
} }
\ No newline at end of file
...@@ -513,4 +513,4 @@ fn test_read_options() { ...@@ -513,4 +513,4 @@ fn test_read_options() {
iter.next(); iter.next();
} }
assert!(key_count == 3); assert!(key_count == 3);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment