Skip to content

Commit 6db16c8

Browse files
author
build
committed
feat:exercises
1 parent 6f091b4 commit 6db16c8

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

exercises/tests/build.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ fn main() {
1111
.unwrap()
1212
.as_secs(); // What's the use of this timestamp here?
1313
let your_command = format!("rustc-env=TEST_FOO={}", timestamp);
14-
1514
println!("cargo:{}", your_command);
16-
// 告诉 Cargo 当 TEST_FOO 环境变量变化时重新运行构建脚本
17-
println!("cargo:rerun-if-env-changed=TEST_FOO");
1815

1916
// In tests8, we should enable "pass" feature to make the
2017
// testcase return early. Fill in the command to tell
2118
// Cargo about that.
22-
let your_command = "Your command here, please checkout exercises/tests/build.rs";
23-
println!("cargo:{}", your_command);
19+
let your_command1 = "rustc-cfg=feature=\"pass\"";
20+
println!("cargo:{}", your_command1);
2421
}

exercises/tests/tests7.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
// Execute `rustlings hint tests7` or use the `hint` watch subcommand for a
3535
// hint.
3636

37-
// I AM NOT DONE
38-
3937
use std::time::SystemTime;
4038

4139
fn main() {

exercises/tests/tests8.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
// Execute `rustlings hint tests8` or use the `hint` watch subcommand for a
88
// hint.
99

10-
// I AM NOT DONE
11-
1210
fn main() {}
1311

1412
#[cfg(test)]

0 commit comments

Comments
 (0)