Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Nov 18, 2018
1 parent 6ad61b9 commit 6357021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/tests/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ fn test_range_step() {
fn test_step_by_skip() {
assert_eq!((0..640).step_by(128).skip(1).collect::<Vec<_>>(), [128, 256, 384, 512]);
assert_eq!((0..=50).step_by(10).nth(3), Some(30));
assert_eq!((250..=255u8).step_by(10).nth(3), Some(230));
assert_eq!((200..=255u8).step_by(10).nth(3), Some(230));
}

#[test]
Expand Down

0 comments on commit 6357021

Please sign in to comment.