Derive debug for some error enum

This commit is contained in:
Paul Hauner 2018-09-22 22:07:39 +10:00
parent 75031f5e69
commit 3968aaa0e0
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -1,5 +1,6 @@
use super::Hash256;
#[derive(Debug)]
pub enum ParentHashesError {
BadCurrentHashes,
BadObliqueHashes,
@ -179,7 +180,6 @@ mod tests {
attestation_slot,
&current_hashes,
&oblique_hashes);
assert!(result.is_ok());
let result = result.unwrap();
assert_eq!(result.len(), cycle_length as usize);
let expected_result = get_range_of_hashes(7, 15);