Move hex_empty_roots test vectors into the only test that uses them
This commit is contained in:
parent
98e40aa44f
commit
44af7855e4
|
|
@ -158,6 +158,8 @@ mod tests {
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn empty_roots() {
|
||||||
// From https://github.com/zcash/librustzcash/blob/master/zcash_primitives/src/merkle_tree.rs#L512
|
// From https://github.com/zcash/librustzcash/blob/master/zcash_primitives/src/merkle_tree.rs#L512
|
||||||
const HEX_EMPTY_ROOTS: [&str; 33] = [
|
const HEX_EMPTY_ROOTS: [&str; 33] = [
|
||||||
"0100000000000000000000000000000000000000000000000000000000000000",
|
"0100000000000000000000000000000000000000000000000000000000000000",
|
||||||
|
|
@ -195,8 +197,6 @@ mod tests {
|
||||||
"fbc2f4300c01f0b7820d00e3347c8da4ee614674376cbc45359daa54f9b5493e",
|
"fbc2f4300c01f0b7820d00e3347c8da4ee614674376cbc45359daa54f9b5493e",
|
||||||
];
|
];
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn empty_roots() {
|
|
||||||
for i in 0..EMPTY_ROOTS.len() {
|
for i in 0..EMPTY_ROOTS.len() {
|
||||||
assert_eq!(hex::encode(EMPTY_ROOTS[i]), HEX_EMPTY_ROOTS[i]);
|
assert_eq!(hex::encode(EMPTY_ROOTS[i]), HEX_EMPTY_ROOTS[i]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue