summaryrefslogtreecommitdiff
path: root/test/test_set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_set.rb')
-rw-r--r--test/test_set.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_set.rb b/test/test_set.rb
index 68ee7ce8a3..86f860222c 100644
--- a/test/test_set.rb
+++ b/test/test_set.rb
@@ -800,6 +800,9 @@ class TC_SortedSet < Test::Unit::TestCase
def test_sortedset
s = SortedSet[4,5,3,1,2]
+ a = s.to_a
+ assert_equal([1,2,3,4,5], a)
+ a << -1
assert_equal([1,2,3,4,5], s.to_a)
prev = nil