From 653f9c7f28d8b5669e1f64f9210db92335151e78 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 2 Jun 2023 13:51:01 +0200 Subject: [PATCH] Add rustdoc test for double-hyphen to dash doc comment conversion --- tests/rustdoc/double-hyphen-to-dash.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/rustdoc/double-hyphen-to-dash.rs diff --git a/tests/rustdoc/double-hyphen-to-dash.rs b/tests/rustdoc/double-hyphen-to-dash.rs new file mode 100644 index 00000000000..66905f90cfc --- /dev/null +++ b/tests/rustdoc/double-hyphen-to-dash.rs @@ -0,0 +1,9 @@ +// This test ensures that `--` (double-hyphen) is correctly converted into `–` (dash). + +#![crate_name = "foo"] + +// @has 'foo/index.html' '//*[@class="desc docblock-short"]' '–' +// @has 'foo/struct.Bar.html' '//*[@class="docblock"]' '–' + +/// -- +pub struct Bar;