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