on master help sign in
Add integration test for nonexisting newline
commit3e9afe297446e449f3b05df32d4731c78ee14ce3 authorsharkdp <davidpeter@web.de> dateMon 21 Dec 2020, 08:34 (6 years ago) parent73c1657
1 file changed+14
tests/integration_tests.rs+14
tests/integration_tests.rs+14
@@ -813,3 +813,17 @@ fn show_all_mode() {
813813 .stdout("hello·world␊\n├──┤␍␀␇␈␛")
814814 .stderr("");
815815}
816+
817+#[test]
818+fn plain_mode_does_not_add_nonexisting_newline() {
819+ bat()
820+ .arg("--paging=never")
821+ .arg("--color=never")
822+ .arg("--decorations=always")
823+ .arg("--style=plain")
824+ .arg("single-line.txt")
825+ .assert()
826+ .success()
827+ .stdout("Single Line");
828+}
829+