Improve ef_tests

This commit is contained in:
Paul Hauner
2019-05-13 18:09:19 +10:00
parent 31d960011f
commit beb5537904
2 changed files with 18 additions and 4 deletions

View File

@@ -21,6 +21,23 @@ pub struct SszGenericCase {
pub ssz: Option<String>,
}
pub trait Test {
fn test(&self);
}
impl Test for TestDoc<SszGenericCase> {
fn test(&self) {
for case in &self.test_cases {
// Cases that do not have SSZ are ignored.
if let Some(ssz) = &case.ssz {
dbg!(case);
}
}
assert!(false);
}
}
#[cfg(test)]
mod tests {
#[test]