Skip to content

Commit cbf6fe0

Browse files
Add more merged doctests tests
1 parent c9f730e commit cbf6fe0

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//@ compile-flags:--test --test-args=--test-threads=1 -Zunstable-options --edition 2024
2+
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
3+
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
4+
//@ check-pass
5+
6+
/// ```ignore (test)
7+
/// let x = 12;
8+
/// ```
9+
pub fn ignored() {}
10+
11+
/// ```no_run
12+
/// panic!("blob");
13+
/// ```
14+
pub fn no_run() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
running 2 tests
3+
test $DIR/merged-ignore-no_run.rs - ignored (line 6) ... ignored
4+
test $DIR/merged-ignore-no_run.rs - no_run (line 11) - compile ... ok
5+
6+
test result: ok. 1 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
7+

0 commit comments

Comments
 (0)