Failed attempt to add a test of --map-styles with --color-words

This commit is contained in:
Dan Davison 2021-12-11 21:12:51 -05:00
parent 15e9374b78
commit 34b99407a7

View File

@ -245,6 +245,28 @@ mod tests {
);
}
#[test]
#[ignore] // FIXME
fn test_color_words_map_styles() {
DeltaTest::with(&[
"--map-styles='red => bold yellow #dddddd, green => bold blue #dddddd'",
])
.with_calling_process("git diff --color-words")
.with_input(GIT_DIFF_COLOR_WORDS)
.explain_ansi()
.inspect()
.expect_skip(
11,
r##"
#indent_mark
(blue)(blue)(normal)
(blue)1(normal): (blue)(normal)
(blue)(blue)(normal)
(bold yellow "#dddddd")aaa(bold blue "#dddddd")bbb(normal)
"##,
);
}
const GIT_DIFF_COLOR_WORDS: &str = r#"\
commit 6feea4949c20583aaf16eee84f38d34d6a7f1741
Author: Dan Davison <dandavison7@gmail.com>