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