diff options
Diffstat (limited to 'src/handlers/hunk.rs')
-rw-r--r-- | src/handlers/hunk.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/handlers/hunk.rs b/src/handlers/hunk.rs index b541d326..2abd4187 100644 --- a/src/handlers/hunk.rs +++ b/src/handlers/hunk.rs @@ -281,11 +281,11 @@ mod tests { #[test] fn test_word_diff() { - DeltaTest::with(&[]) + DeltaTest::with_args(&[]) .with_calling_process("git diff --word-diff") - .with_input(GIT_DIFF_WORD_DIFF) .explain_ansi() - .expect_skip( + .with_input(GIT_DIFF_WORD_DIFF) + .expect_after_skip( 11, " #indent_mark @@ -299,11 +299,11 @@ mod tests { #[test] fn test_color_words() { - DeltaTest::with(&[]) + DeltaTest::with_args(&[]) .with_calling_process("git diff --color-words") - .with_input(GIT_DIFF_COLOR_WORDS) .explain_ansi() - .expect_skip( + .with_input(GIT_DIFF_COLOR_WORDS) + .expect_after_skip( 11, " #indent_mark @@ -318,15 +318,15 @@ mod tests { #[test] #[ignore] // FIXME fn test_color_words_map_styles() { - DeltaTest::with(&[ + DeltaTest::with_args(&[ "--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() + .with_input(GIT_DIFF_COLOR_WORDS) .inspect() - .expect_skip( + .expect_after_skip( 11, r##" #indent_mark @@ -340,10 +340,10 @@ mod tests { #[test] fn test_hunk_line_style_raw() { - DeltaTest::with(&["--minus-style", "raw", "--plus-style", "raw"]) - .with_input(GIT_DIFF_WITH_COLOR) + DeltaTest::with_args(&["--minus-style", "raw", "--plus-style", "raw"]) .explain_ansi() - .expect_skip( + .with_input(GIT_DIFF_WITH_COLOR) + .expect_after_skip( 14, " (red)aaa(normal) @@ -354,7 +354,7 @@ mod tests { #[test] fn test_hunk_line_style_raw_map_styles() { - DeltaTest::with(&[ + DeltaTest::with_args(&[ "--minus-style", "raw", "--plus-style", @@ -362,9 +362,9 @@ mod tests { "--map-styles", "red => bold blue, green => dim yellow", ]) - .with_input(GIT_DIFF_WITH_COLOR) .explain_ansi() - .expect_skip( + .with_input(GIT_DIFF_WITH_COLOR) + .expect_after_skip( 14, " (bold blue)aaa(normal) |