Skip to content

Commit

Permalink
Add test for block doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 19, 2022
1 parent 2938be6 commit 06b00ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/rustdoc/strip-block-doc-comments-stars.docblock.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<div class="docblock"><p>a</p>
</div>
11 changes: 11 additions & 0 deletions src/test/rustdoc/strip-block-doc-comments-stars.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#![crate_name = "foo"]

// The goal of this test is to answer that it won't be generated as a list because
// block doc comments can have their lines starting with a star.

// @has foo/fn.foo.html
// @snapshot docblock - '//*[@class="rustdoc-toggle top-doc"]//*[@class="docblock"]'
/**
* a
*/
pub fn foo() {}

0 comments on commit 06b00ad

Please sign in to comment.