pub struct TestCase {
pub description: Option<String>,
pub examples: Vec<[String; 2]>,
pub solution: Vec<BinaryAlgebraicExpressionTree>,
}Expand description
A TestCase is useful for unit testing in mod tests.
Fields§
§description: Option<String>§examples: Vec<[String; 2]>§solution: Vec<BinaryAlgebraicExpressionTree>Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestCase
impl<'de> Deserialize<'de> for TestCase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestCase
impl RefUnwindSafe for TestCase
impl Send for TestCase
impl Sync for TestCase
impl Unpin for TestCase
impl UnwindSafe for TestCase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more