diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:07:26 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-05-30 16:55:38 -0400 |
commit | 818dd10ee50ffc5562bd847eb53e14b397498077 (patch) | |
tree | 23e8ba2f9cf594d935f211137228aeb1598869b2 /src/tests | |
parent | a6de26c4eed802ebe45acb43ec9d50514adcdf61 (diff) |
Strengthen tests slightly
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_example_diffs.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index faef5831..dff2d9cb 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -215,7 +215,6 @@ mod tests { 0, "commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e", ); - let output = strip_ansi_codes(&output); assert!(output.contains( "\ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e @@ -321,7 +320,6 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │ 1, "commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e │", ); - let output = strip_ansi_codes(&output); assert!(output.contains( "\ ────────────────────────────────────────────────┐ @@ -375,7 +373,6 @@ commit 94907c0f136f46dc46ffae2dc92dca9af7eb7c2e { ansi_test_utils::assert_line_has_no_color(&output, 6 + i, line); } - let output = strip_ansi_codes(&output); assert!(output.contains( " diff --git a/src/align.rs b/src/align.rs @@ -475,7 +472,6 @@ src/align.rs │ options.file_decoration_style = "box".to_string(); let (output, _) = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, options); ansi_test_utils::assert_line_has_no_color(&output, 8, "src/align.rs │"); - let output = strip_ansi_codes(&output); assert!(output.contains( " ─────────────┐ @@ -523,7 +519,6 @@ src/align.rs 9, "@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> {", ); - let output = strip_ansi_codes(&output); assert!(output.contains("@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> {")); } @@ -602,7 +597,6 @@ src/align.rs 11, "@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> { │", ); - let output = strip_ansi_codes(&output); assert!(output.contains( " ────────────────────────────────────────────┐ |