mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Improve ef_tests
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user