summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-05-30 13:20:13 -0400
committerDan Davison <dandavison7@gmail.com>2020-05-30 16:55:38 -0400
commite0d047f3553de06fb4d345f4839199d8e40f1b79 (patch)
tree0196595cf368b6913c8d4f6496ad8bab48442344 /src/tests
parentc7a9bb77302b0df013250be4ac3d27d547a46502 (diff)
Add failing test of --file-style raw
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_example_diffs.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs
index aee4a53a..eb2ccfc6 100644
--- a/src/tests/test_example_diffs.rs
+++ b/src/tests/test_example_diffs.rs
@@ -351,6 +351,22 @@ src/align.rs │
}
#[test]
+ fn test_file_style_box_raw() {
+ let mut options = integration_test_utils::get_command_line_options();
+ options.file_style = "raw".to_string();
+ options.file_decoration_style = "box".to_string();
+ let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options);
+ ansi_test_utils::assert_line_has_no_color(&output, 8, "src/align.rs │");
+ let output = strip_ansi_codes(&output);
+ assert!(output.contains(
+ "
+─────────────┐
+src/align.rs │
+─────────────┴─"
+ ));
+ }
+
+ #[test]
fn test_file_style_underline() {
let mut options = integration_test_utils::get_command_line_options();
options.file_style = "magenta".to_string();