X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=common%2Fsrc%2Flib.rs;h=5112279cd7c8426efda3f31f47b511e281ef3725;hb=e8c9051b408f567c67fe35872d89851c185e4768;hp=72169679b253de1bef16c76f692786b46ef4b265;hpb=4a1fa0b902bd01c2630b8b7b0818e46142d93f94;p=rup.git diff --git a/common/src/lib.rs b/common/src/lib.rs index 7216967..5112279 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -1,4 +1,11 @@ -mod rup { + +fn f(a: i32, b: i32) -> i32 { + a + 2 * b +} + +mod tests { + use super::*; + #[test] fn it_works() { assert_eq!(2 + 2, 4);