use assert_cmd::Command;
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
```
```rust
// This should also output as ```rust
```
```python
# This should be on the output
```
"#;
#[test]
fn default_behavior() {
let args = ["readme", "--project-root", "tests/test-project"];
Command::cargo_bin(env!("CARGO_PKG_NAME"))
.unwrap()
.args(args)
.assert()
.success()
.stdout(EXPECTED);
}