summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/set.rb2
-rw-r--r--prelude.rb9
-rw-r--r--test/test_set.rb39
3 files changed, 49 insertions, 1 deletions
@@ -854,7 +854,7 @@ module Enumerable
# Needs to `require "set"` to use this method.
def to_set(klass = Set, *args, &block)
klass.new(self, *args, &block)
- end
end
autoload :SortedSet, "#{__dir__}/set/sorted_set"
@@ -20,3 +20,12 @@ module Kernel
private :pp
end
@@ -838,3 +838,42 @@ class TC_Enumerable < Test::Unit::TestCase
assert_not_same set, set.to_set { |o| o }
end
end