Skip to content

Commit

Permalink
remove silly test that relied on RangeFrom::size_hint returning 0 ins…
Browse files Browse the repository at this point in the history
…tead of usize::MAX
  • Loading branch information
flo-l committed Jun 7, 2017
1 parent 337ba02 commit 1bf7488
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,12 @@ fn sliding_windows_4() {
let iter3 = Adaptor::new(0..5, &mut storage3);

let mut storage4: Storage<u32> = Storage::new(6);
let iter4 = Adaptor::new(0..0, &mut storage4);

let mut storage5: Storage<u32> = Storage::new(6);
let iter5 = Adaptor::new(0.., &mut storage5);
let iter4 = Adaptor::new(42..42, &mut storage4);

assert_eq!(iter1.size_hint(), (3, Some(3)));
assert_eq!(iter2.size_hint(), (1, Some(1)));
assert_eq!(iter3.size_hint(), (1, Some(1)));
assert_eq!(iter4.size_hint(), (0, Some(0)));
assert_eq!(iter5.size_hint(), (0, None));
}

#[test]
Expand Down

0 comments on commit 1bf7488

Please sign in to comment.