diff options
Diffstat (limited to 'tests/rustdoc/double-hyphen-to-dash.rs')
-rw-r--r-- | tests/rustdoc/double-hyphen-to-dash.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc/double-hyphen-to-dash.rs b/tests/rustdoc/double-hyphen-to-dash.rs new file mode 100644 index 000000000..66905f90c --- /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; |