mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 13:22:19 +08:00
12 lines
223 B
Rust
12 lines
223 B
Rust
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
#[test]
|
||
|
fn it_works() -> Result<(), String> {
|
||
|
if 2 + 2 == 4 {
|
||
|
Ok(())
|
||
|
} else {
|
||
|
Err(String::from("two plus two does not equal four"))
|
||
|
}
|
||
|
}
|
||
|
}
|