summaryrefslogtreecommitdiff
path: root/spec/ruby/library/matrix/coerce_spec.rb
blob: b8d5484657bcc34a8a9a12cc3f086b54c9b26a04 (plain)
1
2
3
4
5
6
7
8
9
10
require_relative '../../spec_helper'
require 'matrix'

describe "Matrix#coerce" do
  it "needs to be reviewed for spec completeness"

  it "allows the division of fixnum by a Matrix " do
    (1/Matrix[[0,1],[-1,0]]).should == Matrix[[0,-1],[1,0]]
  end
end