-
Notifications
You must be signed in to change notification settings - Fork 37
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
Update registers after parsing integers #133
Conversation
JRuby needs the same fix it seems. |
bfa886e
to
095895e
Compare
Done. |
095895e
to
404ee23
Compare
test/strscan/test_stringscanner.rb
Outdated
assert_equal("42", s.matched) | ||
|
||
s = create_string_scanner("42abc") | ||
assert_equal(273084, s.scan_integer(base: 16)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using hex literal for easy to read?
assert_equal(273084, s.scan_integer(base: 16)) | |
assert_equal(0x42abc, s.scan_integer(base: 16)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
688fd80
to
2a3510c
Compare
Thanks for the review. Updated. |
Thanks! |
data (ruby/strscan#133) Fix ruby/strscan#130 Reported by Andrii Konchyn. Thanks!!! ruby/strscan@4e5f17f87a
data (ruby/strscan#133) Fix ruby/strscan#130 Reported by Andrii Konchyn. Thanks!!! ruby/strscan@4e5f17f87a
Fix GH-130