Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

Commit 0e2aadf

Browse files
committed
Make sure we can actually test prod code
1 parent c142db6 commit 0e2aadf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/test_on_host.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ fn main() -> ! {
3232
}
3333
}
3434

35+
fn add(a: i32, b: i32) -> i32 {
36+
a + b
37+
}
38+
3539
#[cfg(test)]
3640
mod test {
3741
use super::*;
3842

3943
#[test]
4044
fn foo() {
4145
println!("tests work!");
42-
assert!(1 == 1);
46+
assert!(2 == add(1,1));
4347
}
4448
}

0 commit comments

Comments
 (0)