blob: ccb5f98003ec837f3b23c128c5296df496480e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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);
}
}
|