The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
496 B

pub fn add(a: i32, b: i32) -> i32 {
a + b
}
#[cfg(test)]
mod tests {
extern crate helper;
use super::*;
// This is an intentinally broken test that should be turned off by extra rust arguments
#[cfg(not(broken = "false"))]
#[test]
fn test_broken() {
assert_eq!(0, 5);
}
#[test]
fn test_add_sub() {
let x = helper::subtract(6, 5);
assert_eq!(add(x, 5), 6);
}
}