[前][次][番号順一覧][スレッド一覧]

ruby-changes:30202

From: knu <ko1@a...>
Date: Tue, 30 Jul 2013 19:22:11 +0900 (JST)
Subject: [ruby-changes:30202] knu:r42254 (trunk): Add some more tests.

knu	2013-07-30 19:21:55 +0900 (Tue, 30 Jul 2013)

  New Revision: 42254

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42254

  Log:
    Add some more tests.

  Modified files:
    trunk/test/test_set.rb

Index: test/test_set.rb
===================================================================
--- test/test_set.rb	(revision 42253)
+++ test/test_set.rb	(revision 42254)
@@ -327,6 +327,7 @@ class TC_Set < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_set.rb#L327
     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 https://github.com/ruby/ruby/blob/trunk/test/test_set.rb#L336
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]