rust example of tests module in the tests folder.
use hello_cargo;
// This needs to be in the /tests/ dir beside /src/
// the above `use` must match the name of the crate itself.
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let y = hello_cargo::value::Value::Bool(true);
match y {
hello_cargo::value::Value::Bool(val) => assert!(val),
_ => ()
}
}
}