From 3e9afe297446e449f3b05df32d4731c78ee14ce3 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Mon, 21 Dec 2020 08:34:22 +0100 Subject: [PATCH] Add integration test for nonexisting newline --- tests/integration_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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"); +} +