mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 02:23:20 +00:00
Add more merged doctests tests
This commit is contained in:
parent
c9f730e223
commit
cbf6fe05e7
14
tests/rustdoc-ui/doctest/merged-ignore-no_run.rs
Normal file
14
tests/rustdoc-ui/doctest/merged-ignore-no_run.rs
Normal file
@ -0,0 +1,14 @@
|
||||
//@ compile-flags:--test --test-args=--test-threads=1 -Zunstable-options --edition 2024
|
||||
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
||||
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
||||
//@ check-pass
|
||||
|
||||
/// ```ignore (test)
|
||||
/// let x = 12;
|
||||
/// ```
|
||||
pub fn ignored() {}
|
||||
|
||||
/// ```no_run
|
||||
/// panic!("blob");
|
||||
/// ```
|
||||
pub fn no_run() {}
|
7
tests/rustdoc-ui/doctest/merged-ignore-no_run.stdout
Normal file
7
tests/rustdoc-ui/doctest/merged-ignore-no_run.stdout
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
running 2 tests
|
||||
test $DIR/merged-ignore-no_run.rs - ignored (line 6) ... ignored
|
||||
test $DIR/merged-ignore-no_run.rs - no_run (line 11) - compile ... ok
|
||||
|
||||
test result: ok. 1 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
|
||||
|
Loading…
Reference in New Issue
Block a user