diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-29 14:35:37 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-29 14:35:37 +0000 |
commit | 5b593e388931490c1e2246d0347c892440167b2c (patch) | |
tree | 70d928d35c01b51bb9a6cdc44af4bd7cc05a669b /spec/rubyspec/library/matrix | |
parent | 6a4aa4838cc53a520044b86deb4ecddb57bca876 (diff) |
Update to ruby/spec@abf1700
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/rubyspec/library/matrix')
-rw-r--r-- | spec/rubyspec/library/matrix/regular_spec.rb | 14 | ||||
-rw-r--r-- | spec/rubyspec/library/matrix/singular_spec.rb | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/spec/rubyspec/library/matrix/regular_spec.rb b/spec/rubyspec/library/matrix/regular_spec.rb index a62a200d6d..2f0af99c1e 100644 --- a/spec/rubyspec/library/matrix/regular_spec.rb +++ b/spec/rubyspec/library/matrix/regular_spec.rb @@ -20,12 +20,12 @@ describe "Matrix#regular?" do end it "raises an error for rectangular matrices" do - lambda { - Matrix[[1], [2], [3]].regular? - }.should raise_error(Matrix::ErrDimensionMismatch) + lambda { + Matrix[[1], [2], [3]].regular? + }.should raise_error(Matrix::ErrDimensionMismatch) - lambda { - Matrix.empty(3,0).regular? - }.should raise_error(Matrix::ErrDimensionMismatch) - end + lambda { + Matrix.empty(3,0).regular? + }.should raise_error(Matrix::ErrDimensionMismatch) + end end diff --git a/spec/rubyspec/library/matrix/singular_spec.rb b/spec/rubyspec/library/matrix/singular_spec.rb index 480621998f..83914befbe 100644 --- a/spec/rubyspec/library/matrix/singular_spec.rb +++ b/spec/rubyspec/library/matrix/singular_spec.rb @@ -19,13 +19,13 @@ describe "Matrix#singular?" do end it "raises an error for rectangular matrices" do - lambda { - Matrix[[1], [2], [3]].singular? - }.should raise_error(Matrix::ErrDimensionMismatch) + lambda { + Matrix[[1], [2], [3]].singular? + }.should raise_error(Matrix::ErrDimensionMismatch) - lambda { - Matrix.empty(3,0).singular? - }.should raise_error(Matrix::ErrDimensionMismatch) - end + lambda { + Matrix.empty(3,0).singular? + }.should raise_error(Matrix::ErrDimensionMismatch) + end end |