Add basic code for new testing format

This commit is contained in:
Paul Hauner
2019-05-13 17:56:46 +10:00
parent bf23a5b7b0
commit 31d960011f
6 changed files with 72 additions and 0 deletions

30
tests/ef_tests/src/lib.rs Normal file
View File

@@ -0,0 +1,30 @@
use serde_derive::Deserialize;
#[derive(Debug, Deserialize)]
pub struct TestDoc<T> {
pub title: String,
pub summary: String,
pub forks_timeline: String,
pub forks: Vec<String>,
pub config: String,
pub runner: String,
pub handler: String,
pub test_cases: Vec<T>,
}
#[derive(Debug, Deserialize)]
pub struct SszGenericCase {
#[serde(alias = "type")]
pub type_name: String,
pub valid: bool,
pub value: String,
pub ssz: Option<String>,
}
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}