Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed May 13, 2024
1 parent f9f7f29 commit 6373d7f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/pass/code-block-in-list/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tests/pass/code-block-in-list/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "code_block_in_list"
version = "0.0.0"
publish = false
edition = "2021"

[lib]
path = "lib.rs"
1 change: 1 addition & 0 deletions tests/pass/code-block-in-list/README.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{readme}}
13 changes: 13 additions & 0 deletions tests/pass/code-block-in-list/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This is an example testing code blocks in lists

* in the past, this has caused issues

* one of such cases was [\#440][__link0]

* therefore, we have this example/test:

```rust
struct Foo {
bar: usize
}
```
12 changes: 12 additions & 0 deletions tests/pass/code-block-in-list/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! This is an example testing code blocks in lists
//!
//! - in the past, this has caused issues
//! - one of such cases was [#440](https://github.com/msrd0/cargo-doc2readme/issues/440)
//! - therefore, we have this example/test:
//!
//! ```rust
//! # #[derive(Clone, Copy)]
//! struct Foo {
//! bar: usize
//! }
//! ```

0 comments on commit 6373d7f

Please sign in to comment.