diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-23 08:43:09 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-23 08:43:09 +0800 |
| commit | 4152c5f8bded87ef60a236e00a44d1799704f6c6 (patch) | |
| tree | d06bfb43fba86431390477851fcfbfd4ea1565c0 /test/src | |
| parent | 8a416b85e6ff3890a930baf6dfe113e41f430d06 (diff) | |
6
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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); + } +} |
