diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index ac11efb4..d0217021 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -813,3 +813,17 @@ fn show_all_mode() { .stdout("hello·world␊\n├──┤␍␀␇␈␛") .stderr(""); } + +#[test] +fn plain_mode_does_not_add_nonexisting_newline() { + bat() + .arg("--paging=never") + .arg("--color=never") + .arg("--decorations=always") + .arg("--style=plain") + .arg("single-line.txt") + .assert() + .success() + .stdout("Single Line"); +} +