eventstore/
lib.rs

1pub mod backend;
2
3pub fn add(left: usize, right: usize) -> usize {
4    left + right
5}
6
7#[cfg(test)]
8mod tests {
9
10    use super::*;
11
12    #[test]
13    fn it_works() {
14        let result = add(2, 2);
15        assert_eq!(result, 4);
16    }
17}