Skip to content
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

Test capture of nil block arguments #555

Closed
wants to merge 2 commits into from

Conversation

sozorogami
Copy link

Addresses #446

Review on Reviewable


[robotMock speak:nil afterDelay:2 whenDone:^{}];
[robotMock speak:@"Hello" afterDelay:2 whenDone:nil];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why you've removed the top line?
IMHO both cases are useful

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just making it explicit that block capture was being tested. Should I make separate test cases for normal / block capture?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sozorogami you can either duplicate the test or keep both lines, but both are useful since they're testing different things.

@orta
Copy link
Contributor

orta commented May 21, 2016

A bit of an ask, but any chance you can get this merged with master? I think it might be good to go if it greens ( I tried re-runnning it on travis, but it fails alas )

@sozorogami sozorogami closed this Feb 8, 2021
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.

4 participants