]> git.scottworley.com Git - pluta-lesnura/blob - src/lib.rs
7d12d9af8195bf5e19d10c7b592b359ccd014149
[pluta-lesnura] / src / lib.rs
1 pub fn add(left: usize, right: usize) -> usize {
2 left + right
3 }
4
5 #[cfg(test)]
6 mod tests {
7 use super::*;
8
9 #[test]
10 fn it_works() {
11 let result = add(2, 2);
12 assert_eq!(result, 4);
13 }
14 }