-
Notifications
You must be signed in to change notification settings - Fork 54
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
A failing spec with expect(value).to eq 1.0 raises JSON::ParserError #162
Comments
Hi @maxnotarangelo, thanks for the report, makes sense to me. I'll have to think about how best to fix this as I sense it may be a tricky one although I'm not sure. |
Hi @maxnotarangelo, just re-reviewing the issues list and ran across this issue. A fix for #144 was shipped in 0.9.0. Not sure if you still use the gem, but does that fix this issue for you? |
Hmm, I'm already on 0.9.0 and I'm still getting the same error. |
This is still happening for me on 0.12.1 |
The problem is basically that for CRuby, Before Ruby 2.7.0,
So, to solve this particular issue, let's just In the long term, we should either A) add a C extension to get the object's address in CRuby (seems like overkill if all we're trying to do is make things look more like the built-in Footnotes
|
I'm getting a
JSON::ParserError
with the following code:It looks like it's happening only when both numbers are floats, and the first is at least 100,000. The error is happening here: https://github.com/mcmire/super_diff/blob/d0ccdf204a54da14bfecdbb306008527c52f1686/lib/super_diff/helpers.rb#L55
The proximate cause is that
I think this is a similar issue to #144.
The text was updated successfully, but these errors were encountered: