From 16f940c2d32493ca2c2a98626150c22f73567a14 Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Sun, 23 Jan 2022 12:27:10 +0100 Subject: [PATCH] add show_all_tabstops integration test --- tests/integration_tests.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 6528ad99..f7ed65a9 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -1217,6 +1217,29 @@ fn show_all_mode() { .stderr(""); } +#[test] +fn show_all_tabstops() { + bat() + .arg("tabs.txt") + .arg("--show-all") + .arg("--tabs=4") + .arg("--style=plain") + .assert() + .success() + .stdout( + "├──┤1├┤2├──┤3├┤4␊ +1├─┤?␊ +22├┤?␊ +333↹?␊ +4444├──┤?␊ +55555├─┤?␊ +666666├┤?␊ +7777777↹?␊ +88888888├──┤?␊ +", + ); +} + #[test] fn no_paging_arg() { bat()