summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/unitary_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2023-08-02 18:53:03 +0200
committerBenoit Daloze <[email protected]>2023-08-02 18:53:03 +0200
commitdc54574adefe798702cc93457655da40f4939669 (patch)
treebd7ae5d6afc9bc00f6cb7813774543bc6f12b6e2 /spec/ruby/library/matrix/unitary_spec.rb
parente20f1e443f6d0a4d377ef237fffc1f4c6e27c9e1 (diff)
Update to ruby/spec@9e278f5
Diffstat (limited to 'spec/ruby/library/matrix/unitary_spec.rb')
-rw-r--r--spec/ruby/library/matrix/unitary_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/library/matrix/unitary_spec.rb b/spec/ruby/library/matrix/unitary_spec.rb
index b579cb244d..04e6df8be0 100644
--- a/spec/ruby/library/matrix/unitary_spec.rb
+++ b/spec/ruby/library/matrix/unitary_spec.rb
@@ -14,10 +14,8 @@ ruby_version_is ""..."3.1" do
Matrix[[0, Complex(0, 1)], [Complex(0, 1), 0]].should.unitary?
end
- version_is((Matrix::const_defined?(:VERSION) ? Matrix::VERSION : "0.1.0"), "0.3.0") do
- it "returns true for unitary matrices with a Complex and a negative #imag" do
- Matrix[[0, Complex(0, 1)], [Complex(0, -1), 0]].should.unitary?
- end
+ it "returns true for unitary matrices with a Complex and a negative #imag" do
+ Matrix[[0, Complex(0, 1)], [Complex(0, -1), 0]].should.unitary?
end
it "raises an error for rectangular matrices" do