diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-06-25 21:57:40 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-06-25 22:26:44 -0400 |
commit | d7b25ccb9b9e9d34b5676083adfdcde2325c99e4 (patch) | |
tree | 8bed4004850d13c192140554eb2309cd9ae4c6d4 | |
parent | 436976daeaeafef70c3a99a2befc0df2c55fe6f7 (diff) |
Refactor: generalize regression test
-rw-r--r-- | src/tests/test_example_diffs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs index 11636ef3..7e0bf6b6 100644 --- a/src/tests/test_example_diffs.rs +++ b/src/tests/test_example_diffs.rs @@ -134,9 +134,7 @@ mod tests { } #[test] - // A bug appeared with the change to the tokenization regex in - // b5d87819a1f76de9ef8f16f1bfb413468af50b62. This test asserts that the bug is not present. - fn test_no_post_tokenization_regex_change_truncation_bug() { + fn test_certain_bugs_are_not_present() { for input in vec![DIFF_EXHIBITING_TRUNCATION_BUG] { let config = integration_test_utils::make_config(&["--color-only"]); let output = integration_test_utils::run_delta(input, &config); @@ -1540,6 +1538,8 @@ index 759070d,3daf9eb..0000000 @make -f release.Makefile release "#; + // A bug appeared with the change to the tokenization regex in + // b5d87819a1f76de9ef8f16f1bfb413468af50b62. The bug was triggered by this diff. const DIFF_EXHIBITING_TRUNCATION_BUG: &str = r#" diff --git a/a.rs b/b.rs index cba6064..ba1a4de 100644 |