sight/lib.rs
1// this is the old maintainer's original code and
2// it will no longer be used on the next release
3
4pub fn add(left: usize, right: usize) -> usize {
5 left + right
6}
7
8#[cfg(test)]
9mod tests {
10 use super::*;
11
12 #[test]
13 fn it_works() {
14 let result = add(2, 2);
15 assert_eq!(result, 4);
16 }
17}