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
2019-06-27 21:02:36 +02:00

8 lines
206 B
Ruby

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