summaryrefslogtreecommitdiff
path: root/spec/rubyspec/library/matrix/equal_value_spec.rb
blob: e14a38b872709c2fdaca99cd1b5f25e5bb41ad89 (plain)
1
2
3
4
5
6
7
8
9
10
11
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../shared/equal_value', __FILE__)
require 'matrix'

describe "Matrix#==" do
  it_behaves_like(:equal, :==)

  it "returns true if some elements are == but not eql?" do
    Matrix[[1, 2],[3, 4]].should == Matrix[[1, 2],[3, 4.0]]
  end
end