DEVELOPMENT ENVIRONMENT

~liljamo/felu-ng

ref: bf813e67eeacc7b238b5f64f6a7e88f31397d33f felu-ng/felu-common/src/lib.rs -rw-r--r-- 374 bytes
bf813e67Jonni Liljamo feat: init p2 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright (C) 2025 Jonni Liljamo <jonni@liljamo.com>
 *
 * This file is licensed under GPL-3.0-or-later, see NOTICE and LICENSE for
 * more information.
 */

pub fn add(left: u64, right: u64) -> u64 {
    left + right
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        let result = add(2, 2);
        assert_eq!(result, 4);
    }
}