Skip to content

Commit caf905a

Browse files
committed
Even more range construction cleanup
1 parent ed983b3 commit caf905a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

types/range.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,8 @@ mod test {
397397

398398
#[test]
399399
fn test_range_normalizes() {
400-
let r1 = Range::new(Some(RangeBound::new(10i32, Exclusive)),
401-
Some(RangeBound::new(15i32, Inclusive)));
402-
let r2 = Range::new(Some(RangeBound::new(11i32, Inclusive)),
403-
Some(RangeBound::new(16i32, Exclusive)));
400+
let r1 = range!('(' 10i32, 15i32 ']');
401+
let r2 = range!('[' 11i32, 16i32 ')');
404402
assert_eq!(r1, r2);
405403
}
406404

0 commit comments

Comments
 (0)