-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Description
Environment
Provide at least:
- JRuby version (
jruby -v) and command line (flags, JRUBY_OPTS, etc)
jruby 9.2.0.0-SNAPSHOT (2.4.1) 2018-01-05 2d48da9 Java HotSpot(TM) 64-Bit Server VM 25.144-b01 on 1.8.0_144-b01 +jit [darwin-x86_64]
- Operating system and platform (e.g.
uname -a)
Darwin Charless-Air 16.7.0 Darwin Kernel Version 16.7.0: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64 x86_64
Expected Behavior
- Describe your expectation of how JRuby should behave, perhaps by showing how CRuby/MRI behaves.
MRI returns true for each attached test print.
JRuby returns false for the to_a test print.
- Provide an executable Ruby script or a link to an example repository.
require 'set'
set1 = SortedSet[1, 2]
set2 = set1.dup
puts "expect different objects, [#{set1.object_id != set2.object_id}]"
puts "expect same contents, [#{set1 == set2}]"
puts "expect same length, [#{set1.size == set2.size}]"
puts "expect same to_a, [#{set1.to_a == set2.to_a}]"Reactions are currently unavailable