summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-12-27 21:44:00 +0000
committerDan Davison <dandavison7@gmail.com>2020-12-27 22:06:37 +0000
commit8210334b44bd63a450cf66e4203910e4c2eb055b (patch)
treef0490c49995d00f06dfd199306d12b98d9c0e846 /src/tests
parent32e068bf6e736ff9d364b9d066adbfc62e69b944 (diff)
Use special style attribute to control line-number in hunk-header
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_example_diffs.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs
index 286ffe0c..3530b29d 100644
--- a/src/tests/test_example_diffs.rs
+++ b/src/tests/test_example_diffs.rs
@@ -1008,7 +1008,7 @@ src/align.rs
"--file-style",
"yellow",
"--hunk-header-style",
- "file red",
+ "file line-number red",
"--hunk-header-decoration-style",
"box",
]);
@@ -1037,7 +1037,7 @@ src/align.rs:71: impl<'a> Alignment<'a> { │
"--file-style",
"yellow",
"--hunk-header-style",
- "file red",
+ "file line-number red",
"--hunk-header-decoration-style",
"box",
]);
@@ -1078,7 +1078,7 @@ src/delta.rs:1 │
fn test_hunk_header_style_colored_input_color_is_stripped_under_normal() {
let config = integration_test_utils::make_config_from_args(&[
"--hunk-header-style",
- "normal",
+ "line-number normal",
"--hunk-header-decoration-style",
"omit",
]);
@@ -1268,7 +1268,7 @@ impl<'a> Alignment<'a> {
// otherwise it will confuse assert_line_is_syntax_highlighted.
let config = integration_test_utils::make_config_from_args(&[
"--hunk-header-style",
- "syntax",
+ "line-number syntax",
"--hunk-header-decoration-style",
"box",
]);