mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
libcoretest: use tuple indexing
This commit is contained in:
parent
e792338318
commit
778be74cbb
@ -334,7 +334,7 @@ fn test_iterator_size_hint() {
|
||||
assert_eq!(vi.size_hint(), (10, Some(10)));
|
||||
|
||||
assert_eq!(c.take(5).size_hint(), (5, Some(5)));
|
||||
assert_eq!(c.skip(5).size_hint().val1(), None);
|
||||
assert_eq!(c.skip(5).size_hint().1, None);
|
||||
assert_eq!(c.take_while(|_| false).size_hint(), (0, None));
|
||||
assert_eq!(c.skip_while(|_| false).size_hint(), (0, None));
|
||||
assert_eq!(c.enumerate().size_hint(), (uint::MAX, None));
|
||||
|
Loading…
Reference in New Issue
Block a user