mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-06-16 05:24:17 -06:00
20 lines
290 B
Rust
20 lines
290 B
Rust
pub fn add(left: u64, right: u64) -> u64 {
|
|
left + right
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn exploration() {
|
|
let result = add(2, 2);
|
|
assert_eq!(result, 4);
|
|
}
|
|
|
|
#[test]
|
|
fn another() {
|
|
panic!("Make this test fail");
|
|
}
|
|
}
|