Sha256: 50c2e6a35a4c645fe4f83b0702e539ee5ce6fa1a5c6a23fb448453ca63c6366e

Contents?: true

Size: 463 Bytes

Versions: 14

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper'

describe Dydx::Algebra::Operator::Parts::Inverse do
  it{ expect(inverse(:x, :+).to_s).to eq('( - x )') }
  it{ expect(inverse(:x, :*).to_s).to eq('( 1 / x )') }

  it{ expect(inverse(:x, :+)).to eq(inverse(:x, :+)) }
  it{ expect(inverse(:x, :*)).to eq(inverse(:x, :*)) }

  it{ expect(:x - :x).to eq(e0) }
  it{ expect(:x / :x).to eq(e1) }
  it{ expect(inverse(:x, :+) + :x).to eq(e0) }
  it{ expect(inverse(:x, :*) * :x).to eq(e1) }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dydx-0.1.314 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.31 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.3 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.29 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.28 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.25 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.2 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.1 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.1.0 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.0.9 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.0.8 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.0.7 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.0.6 spec/lib/algebra/operator/parts/inverse_spec.rb
dydx-0.0.5 spec/lib/algebra/operator/parts/inverse_spec.rb