Extend ssz-static testing

This commit is contained in:
Paul Hauner
2019-05-15 09:50:05 +10:00
parent b6d8db3f72
commit 9f42d4d764
8 changed files with 46 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
use super::*;
use std::{fs::File, io::prelude::*, path::PathBuf};
use types::{EthSpec, FewValidatorsEthSpec, FoundationEthSpec};
use types::{EthSpec, FoundationEthSpec};
#[derive(Debug, Deserialize)]
pub struct TestDoc {
@@ -28,7 +28,7 @@ impl TestDoc {
header.config.as_ref(),
) {
("ssz", "uint", _) => run_test::<SszGeneric, FoundationEthSpec>(&doc.yaml),
("ssz", "static", "minimal") => run_test::<SszStatic, FewValidatorsEthSpec>(&doc.yaml),
("ssz", "static", "minimal") => run_test::<SszStatic, MinimalEthSpec>(&doc.yaml),
(runner, handler, config) => panic!(
"No implementation for runner: \"{}\", handler: \"{}\", config: \"{}\"",
runner, handler, config