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 | |
| parent | 8a416b85e6ff3890a930baf6dfe113e41f430d06 (diff) | |
6
| -rw-r--r-- | test/Cargo.toml | 7 | ||||
| -rw-r--r-- | test/src/lib.rs | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/Cargo.toml b/test/Cargo.toml new file mode 100644 index 0000000..e926a09 --- /dev/null +++ b/test/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "might_be_async_test" +version = "0.1.0" +edition = "2024" + +[dependencies] +might_be_async = "../" 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); + } +} |
