From e783212a2cb890c535d3ddea79e2dbb7bba59a2e Mon Sep 17 00:00:00 2001 From: XYT874264076 <53042955+XYT874264076@users.noreply.github.com> Date: Thu, 30 May 2024 15:01:14 +0800 Subject: [PATCH] Tweak unit tests for RangeSet (#282) --- src/ranges.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ranges.rs b/src/ranges.rs index 121a3069..b03a6de2 100644 --- a/src/ranges.rs +++ b/src/ranges.rs @@ -868,7 +868,7 @@ mod tests { assert_eq!(res, Some(i..2), "{:?} want {:?}, got {:?}", i..j, i..2, res) } else if i >= 2 && i <= 4 && j > 4 && j <= 6 { assert_eq!(res, Some(4..j), "{:?} want {:?}, got {:?}", i..j, 4..j, res) - } else if i >= 2 && i <= 4 && j > 4 && j > 6 { + } else if i >= 2 && i <= 4 && j > 6 { assert_eq!(res, Some(4..6), "{:?} want {:?}, got {:?}", i..j, 4..6, res) } else if i >= 4 && i < 6 && j >= 6 { assert_eq!(res, Some(i..6), "{:?} want {:?}, got {:?}", i..j, i..6, res)