use preserves2 as preserves; use preserves::IOValue; use preserves::Map; use preserves::Symbol; #[derive(Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub struct TestCases { pub tests: Map } #[derive(Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)] pub enum TestCase { Test(#[serde(with = "serde_bytes")] Vec, IOValue), NondeterministicTest(#[serde(with = "serde_bytes")] Vec, IOValue), DecodeTest(#[serde(with = "serde_bytes")] Vec, IOValue), ParseError(String), ParseShort(String), ParseEOF(String), DecodeError(#[serde(with = "serde_bytes")] Vec), DecodeShort(#[serde(with = "serde_bytes")] Vec), DecodeEOF(#[serde(with = "serde_bytes")] Vec), }