Skip to content

1r should equal to 1.0r #6764

@mrkn

Description

@mrkn

Environment Information

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc)
jruby 9.3.0.0-SNAPSHOT (2.6.5) 2021-07-23 68f7711598 OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
  • Operating system and platform (e.g. uname -a)
Linux mrkn-ubuntu2004 5.8.0-63-generic #71~20.04.1-Ubuntu SMP Thu Jul 15 17:46:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Other relevant info you may wish to add:

  • Installed or activated gems
    No

  • Application/framework version (e.g. Rails, Sinatra)
    No

  • Environment variables
    No

Expected Behavior
1r == 1.0r

Actual Behavior
1r != 1.0r

$ RBENV_VERSION=jruby-dev ruby -ve "p 1r == 1.0r"
jruby 9.3.0.0-SNAPSHOT (2.6.5) 2021-07-23 68f7711598 OpenJDK 64-Bit Server VM 11.0.11+9-Ubuntu-0ubuntu2.20.04 on 11.0.11+9-Ubuntu-0ubuntu2.20.04 +jit [linux-x86_64]
false

$ ruby -ve "p 1r == 1.0r"
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions