Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

skipWhile #31

Closed
nstepan opened this issue Sep 28, 2014 · 1 comment
Closed

skipWhile #31

nstepan opened this issue Sep 28, 2014 · 1 comment

Comments

@nstepan
Copy link

nstepan commented Sep 28, 2014

I think there is a bug in skipWhile method (and its test):

func testSkipWhile () {
var skipped = SequenceOf(sequence).skipWhile { $0 < 3 }
XCTAssertEqual(Array(skipped), [4, 5])
}

Number 3 should not be skipped so test should be:

XCTAssertEqual(Array(skipped), [3, 4, 5])

@pNre
Copy link
Owner

pNre commented Sep 29, 2014

You're right, a fix is coming.

@pNre pNre closed this as completed in 620e260 Oct 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants