mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@032ee74
This commit is contained in:
parent
f646d20aae
commit
5aaa75e7c1
263 changed files with 921 additions and 921 deletions
|
@ -37,16 +37,16 @@ end
|
|||
|
||||
describe "Matrix.zero?" do
|
||||
it "returns true for empty matrices" do
|
||||
Matrix.empty.zero?.should == true
|
||||
Matrix.empty(3,0).zero?.should == true
|
||||
Matrix.empty(0,3).zero?.should == true
|
||||
Matrix.empty.should.zero?
|
||||
Matrix.empty(3,0).should.zero?
|
||||
Matrix.empty(0,3).should.zero?
|
||||
end
|
||||
|
||||
it "returns true for matrices with zero entries" do
|
||||
Matrix.zero(2,3).zero?.should == true
|
||||
Matrix.zero(2,3).should.zero?
|
||||
end
|
||||
|
||||
it "returns false for matrices with non zero entries" do
|
||||
Matrix[[1]].zero?.should == false
|
||||
Matrix[[1]].should_not.zero?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue