add some more tests
This commit is contained in:
@@ -1,3 +1,17 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
|
||||
fn some_fn(input: bool) -> usize {
|
||||
if input {
|
||||
2 + 4
|
||||
} else {
|
||||
3.saturating_add(5)
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn some_test() {
|
||||
assert_eq!(some_fn(true), 6);
|
||||
assert_eq!(some_fn(false), 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user