test_module_impl 0.3.0

Module publishing test
Documentation
1
2
3
4
5
6
7
8
pub fn add(a: i32, b: i32) -> i32 {
  a + b
}

#[test]
fn test_add() {
  assert_eq!(4, add(2, 2));
}