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

integer?("0300") should not be true #791

Merged
merged 1 commit into from
Jun 15, 2016
Merged

Conversation

srenatus
Copy link
Contributor

because if it is, cmp can never compare "octal strings", since it doesn't reach https://github.com/chef/inspec/blob/master/lib/matchers/matchers.rb#L262

@chris-rock
Copy link
Contributor

@srenatus Awesome. Do you have time to add a test?

@arlimus
Copy link
Contributor

arlimus commented Jun 15, 2016

@chris-rock just added it ahead 😁
kudos @srenatus , great fix 👍

@chris-rock chris-rock merged commit 3d1e4e2 into master Jun 15, 2016
@chris-rock chris-rock deleted the fix/integer-vs-octal branch June 15, 2016 16:50
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.

None yet

4 participants