summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/tests/testsuite/doc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/tests/testsuite/doc.rs')
-rw-r--r--src/tools/cargo/tests/testsuite/doc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/cargo/tests/testsuite/doc.rs b/src/tools/cargo/tests/testsuite/doc.rs
index 481df8590..a16980912 100644
--- a/src/tools/cargo/tests/testsuite/doc.rs
+++ b/src/tools/cargo/tests/testsuite/doc.rs
@@ -2004,7 +2004,7 @@ fn crate_versions() {
let output_path = p.root().join("target/doc/foo/index.html");
let output_documentation = fs::read_to_string(&output_path).unwrap();
- assert!(output_documentation.contains("Version 1.2.4"));
+ assert!(output_documentation.contains("1.2.4"));
}
#[cargo_test]
@@ -2028,7 +2028,7 @@ fn crate_versions_flag_is_overridden() {
};
let asserts = |html: String| {
assert!(!html.contains("1.2.4"));
- assert!(html.contains("Version 2.0.3"));
+ assert!(html.contains("2.0.3"));
};
p.cargo("doc")