diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-31 17:36:45 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-31 17:36:45 -0400 |
commit | 385214f14e94d85197dcdfbd52199f02367f8946 (patch) | |
tree | b6d1804409b3feac0abc5737ae8971755b004cc0 /src/tests | |
parent | 9b3714982ab11cc6419f79a0d3681491117bba76 (diff) |
Allow --ELEMENT-style=none meaning no style
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_example_diffs.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index 5ee26956..7e214512 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -629,6 +629,17 @@ src/align.rs fn test_hunk_header_style_empty_string() { let mut options = integration_test_utils::get_command_line_options(); options.hunk_header_style = "".to_string(); + _do_test_hunk_header_empty_style(options); + } + + #[test] + fn test_hunk_header_style_none() { + let mut options = integration_test_utils::get_command_line_options(); + options.hunk_header_style = "None".to_string(); + _do_test_hunk_header_empty_style(options); + } + + fn _do_test_hunk_header_empty_style(options: cli::Opt) { let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options); assert!(output.contains(" impl<'a> Alignment<'a> {")); assert!(!output.contains("@@")); |