mirror of https://github.com/vacp2p/pmtree.git
fix: tests
This commit is contained in:
parent
97710d597e
commit
9222310701
|
@ -239,7 +239,7 @@ where
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_range(&mut self, start: usize, leaves: &[H::Fr]) -> Result<()> {
|
pub fn set_range(&mut self, start: usize, leaves: &[H::Fr]) -> PmtreeResult<()> {
|
||||||
self.batch_insert(Some(start), leaves)
|
self.batch_insert(Some(start), leaves)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ fn batch_insertions() -> PmtreeResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn set_range() -> Result<()> {
|
fn set_range() -> PmtreeResult<()> {
|
||||||
let mut mt = MerkleTree::<MemoryDB, MyKeccak>::new(2, MemoryDBConfig)?;
|
let mut mt = MerkleTree::<MemoryDB, MyKeccak>::new(2, MemoryDBConfig)?;
|
||||||
|
|
||||||
let leaves = [
|
let leaves = [
|
||||||
|
|
|
@ -172,7 +172,7 @@ fn batch_insertions() -> PmtreeResult<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn set_range() -> Result<()> {
|
fn set_range() -> PmtreeResult<()> {
|
||||||
let mut mt = MerkleTree::<MySled, MyKeccak>::new(
|
let mut mt = MerkleTree::<MySled, MyKeccak>::new(
|
||||||
2,
|
2,
|
||||||
SledConfig {
|
SledConfig {
|
||||||
|
|
Loading…
Reference in New Issue