The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
273 B
17 lines
273 B
1 year ago
|
pub fn add(a: i32, b: i32) -> i32 {
|
||
|
a + b
|
||
|
}
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
extern crate helper;
|
||
|
|
||
|
use super::*;
|
||
|
|
||
|
#[test]
|
||
|
fn test_add_sub() {
|
||
|
let x = helper::subtract(6, 5);
|
||
|
assert_eq!(add(x, 5), 6);
|
||
|
}
|
||
|
}
|