[
https://issues.apache.org/jira/browse/AVRO-1688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tom White updated AVRO-1688:
----------------------------
Attachment: AVRO-1688.patch
I think this problem is caused by the change in behaviour of equals between
Bignum and Float types (https://bugs.ruby-lang.org/issues/3589). In earlier
versions of Ruby {{10.0 == 10}} was true, but now it's not, which is why this
test has started failing.
The fix is to use a union of int and long in the test.
> Ruby test_union(TestIO) is failing
> ----------------------------------
>
> Key: AVRO-1688
> URL: https://issues.apache.org/jira/browse/AVRO-1688
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Reporter: Tom White
> Priority: Blocker
> Fix For: 1.8.0
>
> Attachments: AVRO-1688.patch
>
>
> The failure message is
> {noformat}
> 1) Failure:
> test_union(TestIO) [/Users/tom/workspace/avro/lang/ruby/test/test_io.rb:340]:
> <-3372032630846393039> expected but was
> <-3.372032630846393e+18>.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)