diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-29 11:25:46 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-29 11:40:24 -0400 |
commit | ed7c7b8ae36e100dae269aa04d4c1a06f511db3d (patch) | |
tree | 1a4deda9995b09940d88dd5e3d2e26dafdfaa0cf /src/tests | |
parent | c4f19de44630884c2a9066b27f807f43d36aaf01 (diff) |
Paint box-drawing characters with bold attribute when bold requested
Reverts functionality change in ad9c0899c32217f42ce0b68e5191e16c69355c77
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_example_diffs.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index 0bd63579..dc52e37c 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -226,35 +226,35 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e fn test_commit_style_box() { let mut options = integration_test_utils::get_command_line_options(); options.commit_style = "blue".to_string(); - options.commit_decoration_style = "bold blue box".to_string(); + options.commit_decoration_style = "blue box".to_string(); let (output, config) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options); ansi_test_utils::assert_line_has_foreground_color( &output, 0, - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓", + "────────────────────────────────────────────────┐", "blue", &config, ); ansi_test_utils::assert_line_has_foreground_color( &output, 1, - "commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e ┃", + "commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │", "blue", &config, ); ansi_test_utils::assert_line_has_foreground_color( &output, 2, - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━", + "────────────────────────────────────────────────┴─", "blue", &config, ); let output = strip_ansi_codes(&output); assert!(output.contains( "\ -━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ -commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e ┃ -━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━" +────────────────────────────────────────────────┐ +commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │ +────────────────────────────────────────────────┴─" )); } @@ -262,7 +262,7 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e ┃ fn test_commit_style_underline() { let mut options = integration_test_utils::get_command_line_options(); options.commit_style = "yellow".to_string(); - options.commit_decoration_style = "bold yellow underline".to_string(); + options.commit_decoration_style = "yellow underline".to_string(); let (output, config) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options); ansi_test_utils::assert_line_has_foreground_color( &output, @@ -274,7 +274,7 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e ┃ ansi_test_utils::assert_line_has_foreground_color( &output, 1, - "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━", + "───────────────────────────────────────────────", "yellow", &config, ); @@ -282,7 +282,7 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e ┃ assert!(output.contains( "\ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e -━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" +───────────────────────────────────────────────" )); } |