summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/coerce_spec.rb
blob: 280243d37275981101ad4e99b9f8a9d0dab96d2a (plain)
1
2
3
4
5
6
7
8
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