diff options
author | Tom Milligan <tom@reinfer.io> | 2020-10-08 09:59:14 +0100 |
---|---|---|
committer | Tom Milligan <tom@reinfer.io> | 2020-10-12 09:04:27 +0100 |
commit | c1af6ff2e6f7c596b381a70da8d37c7a28f764f0 (patch) | |
tree | 8167a75732f62b00a841fd51da5d7fcf0aa3a69d /tests | |
parent | aa4000cb0de7db2ad5fcf642e53627c4f53d46f9 (diff) |
Add integration test for style rule
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration_tests.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 9dfa8067..a55d081d 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -680,6 +680,26 @@ fn header_padding() { .stderr(""); } +#[test] +fn header_padding_rule() { + bat() + .arg("--decorations=always") + .arg("--style=header,rule") + .arg("--terminal-width=80") + .arg("test.txt") + .arg("single-line.txt") + .assert() + .stdout( + "File: test.txt +hello world +──────────────────────────────────────────────────────────────────────────────── +File: single-line.txt +Single Line +", + ) + .stderr(""); +} + #[cfg(target_os = "linux")] #[test] fn file_with_invalid_utf8_filename() { |