From 4152c5f8bded87ef60a236e00a44d1799704f6c6 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 23 Jul 2026 08:43:09 +0800 Subject: 6 --- test/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/src/lib.rs (limited to 'test/src') diff --git a/test/src/lib.rs b/test/src/lib.rs new file mode 100644 index 0000000..b93cf3f --- /dev/null +++ b/test/src/lib.rs @@ -0,0 +1,14 @@ +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); + } +} -- cgit