mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-24 05:13:29 +08:00
12 lines
223 B
Rust
Executable File
12 lines
223 B
Rust
Executable File
#[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"))
|
|
}
|
|
}
|
|
}
|