We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e40d7 commit 600d8adCopy full SHA for 600d8ad
Cargo.toml
@@ -148,6 +148,7 @@ use_std = ['std']
148
[workspace]
149
members = [
150
"ctest",
151
+ "ctest-next",
152
"libc-test",
153
]
154
ctest-next/Cargo.toml
@@ -0,0 +1,8 @@
1
+[package]
2
+name = "ctest-next"
3
+version = "0.1.0"
4
+edition = "2021"
5
+rust-version = "1.77"
6
+license = "MIT OR Apache-2.0"
7
+repository = "https://github.com/rust-lang/libc"
8
+publish = false
ctest-next/src/lib.rs
@@ -0,0 +1,14 @@
+pub fn add(left: usize, right: usize) -> usize {
+ left + right
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
9
+ #[test]
10
+ fn it_works() {
11
+ let result = add(2, 2);
12
+ assert_eq!(result, 4);
13
+ }
14
0 commit comments