Skip to content

Fix failure_msg and success_msg for throws_error#342

Merged
hadley merged 3 commits into
r-lib:masterfrom
nealrichardson:master
Jan 12, 2016
Merged

Fix failure_msg and success_msg for throws_error#342
hadley merged 3 commits into
r-lib:masterfrom
nealrichardson:master

Conversation

@nealrichardson
Copy link
Copy Markdown

I noticed that expect_error was oddly printing that the "code raised an error" when the expectation correctly failed on code that did not error. Turns out the failure_msg and success_msg arguments were in the wrong order in throws_error. Test and fix.

@hadley
Copy link
Copy Markdown
Member

hadley commented Jan 12, 2016

Oops! Could you please also add a bullet to NEWS.

@nealrichardson
Copy link
Copy Markdown
Author

Done: 2367d60

@hadley
Copy link
Copy Markdown
Member

hadley commented Jan 12, 2016

Can you cite your github username and this issue too please?

@nealrichardson
Copy link
Copy Markdown
Author

Rectified: nealrichardson@4650f50

hadley added a commit that referenced this pull request Jan 12, 2016
Fix failure_msg and success_msg for throws_error
@hadley hadley merged commit be428eb into r-lib:master Jan 12, 2016
@hadley
Copy link
Copy Markdown
Member

hadley commented Jan 12, 2016

Thanks! Fwiw you can just say "PTAL" when you need me to take another look.

krlmlr pushed a commit to krlmlr/testthat that referenced this pull request Jan 13, 2016
Overriding changes of r-lib#342, because they were already implemented here (albeit differently).
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