Skip to content

Commit

Permalink
Tweak unit tests for RangeSet (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
XYT874264076 committed May 30, 2024
1 parent 2ae2d06 commit e783212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ranges.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e783212

Please sign in to comment.