Skip to content

Observable.range - add unit test for eager completion on empty #2898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2015

Conversation

davidmoten
Copy link
Collaborator

As per discussion in #2884, it turns out that range does emit onComplete even when zero is requested because Observable.range does not use OperatorRange when the count is zero but rather returns an Observable.empty(). This PR adds a unit test confirming this fact.

@akarnokd
Copy link
Member

Looks good. Thanks!

akarnokd added a commit that referenced this pull request Apr 21, 2015
Observable.range - add unit test for eager completion on empty
@akarnokd akarnokd merged commit f90d885 into ReactiveX:1.x Apr 21, 2015
@davidmoten davidmoten deleted the range-eager-complete branch April 21, 2015 08:04
@benjchristensen benjchristensen mentioned this pull request Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants