Reword and fix Overview.
It is not necessary to require 'test/unit/ui/console/testrunner'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8cdd299bf0
commit
86bbeb6017
11
lib/set.rb
11
lib/set.rb
@ -13,12 +13,12 @@
|
|||||||
#
|
#
|
||||||
# == Overview
|
# == Overview
|
||||||
#
|
#
|
||||||
# This library provides the Set class that deals with a collection of
|
# This library provides the Set class, which deals with a collection
|
||||||
# unordered values with no duplicates. It is a hybrid of Array's
|
# of unordered values with no duplicates. It is a hybrid of Array's
|
||||||
# intuitive inter-operation facilities and Hash's fast lookup.
|
# intuitive inter-operation facilities and Hash's fast lookup. If you
|
||||||
|
# need to keep values ordered, use the SortedSet class.
|
||||||
#
|
#
|
||||||
# It also provides the SortedSet class which keeps the elements sorted,
|
# The method +to_set+ is added to Enumerable for convenience.
|
||||||
# and adds the method +to_set+ to Enumerable.
|
|
||||||
#
|
#
|
||||||
# See the Set class for an example of usage.
|
# See the Set class for an example of usage.
|
||||||
|
|
||||||
@ -625,7 +625,6 @@ end
|
|||||||
__END__
|
__END__
|
||||||
|
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'test/unit/ui/console/testrunner'
|
|
||||||
|
|
||||||
class TC_Set < Test::Unit::TestCase
|
class TC_Set < Test::Unit::TestCase
|
||||||
def test_aref
|
def test_aref
|
||||||
|
Loading…
x
Reference in New Issue
Block a user