diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-12-11 21:12:51 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2021-12-12 00:20:52 -0500 |
commit | 34b99407a7e4acda44feabf2c34a5d63c07f3d3a (patch) | |
tree | 73e2471d96784eb14ab96baf70d38843f72daeb1 | |
parent | 15e9374b783512969a37bd9e19c2c00ff0648e22 (diff) |
Failed attempt to add a test of --map-styles with --color-words
-rw-r--r-- | src/handlers/hunk.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/handlers/hunk.rs b/src/handlers/hunk.rs index 08fc5f96..8b97a2d8 100644 --- a/src/handlers/hunk.rs +++ b/src/handlers/hunk.rs @@ -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#"\ [33mcommit 6feea4949c20583aaf16eee84f38d34d6a7f1741[m Author: Dan Davison <dandavison7@gmail.com> |