summaryrefslogtreecommitdiff
path: root/test/test_set.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-30 10:21:55 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-30 10:21:55 +0000
commit038f82d293b0fbd37539251dc7dcbc6478e802df (patch)
tree1b9c45cbdc7ac53b26e8c67a34750042acea2038 /test/test_set.rb
parentbd304ed85bc2f3c0cc57334fe624fc0efa122cbc (diff)
Add some more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_set.rb')
-rw-r--r--test/test_set.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_set.rb b/test/test_set.rb
index 1f6f243..df81a36 100644
--- a/test/test_set.rb
+++ b/test/test_set.rb
@@ -327,6 +327,7 @@ class TC_Set < Test::Unit::TestCase
assert_intersect(ArgumentError, set, 3)
assert_intersect(ArgumentError, set, [2,4,6])
+ assert_intersect(true, set, set)
assert_intersect(true, set, Set[2,4])
assert_intersect(true, set, Set[5,6,7])
assert_intersect(true, set, Set[1,2,6,8,4])
@@ -335,6 +336,9 @@ class TC_Set < Test::Unit::TestCase
assert_intersect(false, set, Set[0,2])
assert_intersect(false, set, Set[0,2,6])
assert_intersect(false, set, Set[0,2,6,8,10])
+
+ # Make sure set hasn't changed
+ assert_equal(Set[3,4,5], set)
end
def test_each