scsys-xtask 0.0.0

A custom build system for the scsys ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
    Appellation: default <module>
    Contrib: @FL03
*/

#[test]
fn crate_compiles() {
    fn adder<A, B, C>(a: A, b: B) -> C
    where
        A: core::ops::Add<B, Output = C>,
    {
        a + b
    }
    // verify the function works
    assert_eq!(adder(10, 10), 20);
    // test different types against a wrong answer
    assert_ne!(adder(1.0, 0.75), 1.74);
}