Skip to content

Commit

Permalink
Add test of indoc with zero chars in last line
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 29, 2023
1 parent ac7b06c commit 5586b97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_indoc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
use indoc::indoc;

const HELP: &str = indoc! {"
Usage: ./foo
"};

#[test]
fn test_global() {
let expected = "Usage: ./foo\n";
assert_eq!(HELP, expected);
}

#[test]
fn byte_string() {
let indoc = indoc! {b"
Expand Down

0 comments on commit 5586b97

Please sign in to comment.