Skip to content

Commit 98b5f25

Browse files
mbyxtgross35
authored andcommitted
Add ctest-next stub and expected dependencies
(backport <#4467>) [ remove dependencies so this can remain a stub - Trevor ] (cherry picked from commit 0763c65)
1 parent dc758bc commit 98b5f25

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ use_std = ['std']
148148
[workspace]
149149
members = [
150150
"ctest",
151+
"ctest-next",
151152
"libc-test",
152153
]
153154

ctest-next/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
pub fn add(left: usize, right: usize) -> usize {
2+
left + right
3+
}
4+
5+
#[cfg(test)]
6+
mod tests {
7+
use super::*;
8+
9+
#[test]
10+
fn it_works() {
11+
let result = add(2, 2);
12+
assert_eq!(result, 4);
13+
}
14+
}

0 commit comments

Comments
 (0)