-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate
run-make/rustdoc-error-lines
to rmake.rs
- Loading branch information
1 parent
27e6741
commit bb474aa
Showing
3 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Assert that the search index is generated deterministically, regardless of the | ||
// order that crates are documented in. | ||
|
||
use run_make_support::rustdoc; | ||
|
||
fn main() { | ||
let output = | ||
String::from_utf8(rustdoc().input("input.rs").arg("--test").command_output().stdout) | ||
.unwrap(); | ||
|
||
let should_contain = &[ | ||
"input.rs - foo (line 5)", | ||
"input.rs:7:15", | ||
"input.rs - bar (line 15)", | ||
"input.rs:17:15", | ||
"input.rs - bar (line 24)", | ||
"input.rs:26:15", | ||
]; | ||
for text in should_contain { | ||
assert!(output.contains(text), "output doesn't contains {:?}", text); | ||
} | ||
} |