1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/library/matrix/coerce_spec.rb
2020-12-21 01:19:55 +09:00

8 lines
207 B
Ruby

require_relative '../../spec_helper'
require 'matrix'
describe "Matrix#coerce" do
it "allows the division of integer by a Matrix " do
(1/Matrix[[0,1],[-1,0]]).should == Matrix[[0,-1],[1,0]]
end
end