84ac80f192
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
22 lines
654 B
Rust
22 lines
654 B
Rust
// Assert that the search index is generated deterministically, regardless of the
|
|
// order that crates are documented in.
|
|
|
|
use std::path::Path;
|
|
|
|
use run_make_support::{diff, rustdoc};
|
|
|
|
fn main() {
|
|
let foo_first = Path::new("foo_first");
|
|
rustdoc().input("foo.rs").output(&foo_first).run();
|
|
rustdoc().input("bar.rs").output(&foo_first).run();
|
|
|
|
let bar_first = Path::new("bar_first");
|
|
rustdoc().input("bar.rs").output(&bar_first).run();
|
|
rustdoc().input("foo.rs").output(&bar_first).run();
|
|
|
|
diff()
|
|
.expected_file(foo_first.join("search-index.js"))
|
|
.actual_file(bar_first.join("search-index.js"))
|
|
.run();
|
|
}
|