Improve error messages for ef_tests

This commit is contained in:
Paul Hauner
2019-05-23 16:55:50 +10:00
parent d0ab1a0576
commit 92610b4fd3
9 changed files with 43 additions and 16 deletions

View File

@@ -25,7 +25,14 @@ pub use operations_transfer::*;
pub use ssz_generic::*;
pub use ssz_static::*;
pub trait Case {
pub trait Case: Debug {
/// An optional field for implementing a custom description.
///
/// Defaults to "no description".
fn description(&self) -> String {
"no description".to_string()
}
/// Execute a test and return the result.
///
/// `case_index` reports the index of the case in the set of test cases. It is not strictly