// Copyright 2019 GoKeep Author. All rights reserved. // license that can be found in the LICENSE file. pub fn add(a: i32, b: i32) -> i32 { a + b } #[cfg(test)] mod tests { use super::*; #[test] fn test_add() { assert_eq!(add(1, 2), 3); } #[test] fn it_works() { assert_eq!(2 + 2, 4); } }