use assert_cli::Assert;
const EXPECTED: &str = r#"
[](https://travis-ci.org/livioribeiro/cargo-readme)
# readme-test
Some text here
Test crate for cargo-readme
## Level 1 heading should become level 2
```rust
// This is standard doc test and should be output as ```rust
let condition = true;
if condition {
// Some conditional code here
if condition {
// Some nested conditional code here
}
}
```
### Level 2 heading should become level 3
```rust
// This also should output as ```rust
```
#### Level 3 heading should become level 4
```rust
// This also should output as ```rust
```
```rust
// This should output as ```rust too
```
```rust
// And also this should output as ```rust
```
```python
# This should be on the output
```
"#;
#[test]
fn default_behavior() {
let args = ["readme", "--project-root", "tests/test-project"];
Assert::main_binary()
.with_args(&args)
.succeeds()
.and()
.stdout()
.is(EXPECTED)
.unwrap();
}