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

expect_match and match don't report false on NULL object #100

Closed
hudon opened this issue Oct 28, 2013 · 2 comments
Closed

expect_match and match don't report false on NULL object #100

hudon opened this issue Oct 28, 2013 · 2 comments

Comments

@hudon
Copy link

hudon commented Oct 28, 2013

> expect_match('a', 'oeu')
Error: "a" does not match 'oeu'. Actual value: 
a
> expect_match(NULL, 'oeu')
>

I would expect the second one to fail as well? Or is this intended?

@hadley
Copy link
Member

hadley commented Oct 29, 2013

That's definitely a bug.

@agstudy
Copy link

agstudy commented Nov 6, 2013

related , but different behavior with 2 NULL:

expect_match(NULL, NULL)
Error: is.character(regexp) is not TRUE

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

No branches or pull requests

3 participants