mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@cbe855c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ecf03376ec
commit
37ef87c12b
38 changed files with 185 additions and 177 deletions
|
@ -9,9 +9,9 @@ describe "Array#reject" do
|
|||
ary = [1, 2, 3, 4, 5]
|
||||
ary.reject { true }.should == []
|
||||
ary.reject { false }.should == ary
|
||||
ary.reject { false }.object_id.should_not == ary.object_id
|
||||
ary.reject { false }.should_not equal ary
|
||||
ary.reject { nil }.should == ary
|
||||
ary.reject { nil }.object_id.should_not == ary.object_id
|
||||
ary.reject { nil }.should_not equal ary
|
||||
ary.reject { 5 }.should == []
|
||||
ary.reject { |i| i < 3 }.should == [3, 4, 5]
|
||||
ary.reject { |i| i % 2 == 0 }.should == [1, 3, 5]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue