diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:23:52 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:55:38 -0400 |
commit | b3ef46374a75b5585d25c4fe8b255bc770dc3b84 (patch) | |
tree | 5bb6518e81b2c613657fa39a60cf91f01b68e1b6 /src/tests | |
parent | 818dd10ee50ffc5562bd847eb53e14b397498077 (diff) |
Add test of --hunk-header-style=''
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_example_diffs.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index dff2d9cb..385d2a59 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -558,6 +558,15 @@ src/align.rs } #[test] + fn test_hunk_header_style_empty_string() { + let mut options = integration_test_utils::get_command_line_options(); + options.hunk_header_style = "".to_string(); + let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options); + assert!(output.contains(" impl<'a> Alignment<'a> {")); + assert!(!output.contains("@@")); + } + + #[test] fn test_hunk_header_style_box() { let mut options = integration_test_utils::get_command_line_options(); options.hunk_header_decoration_style = "white box".to_string(); |