Sha256: e7c3b3160a9ac3e2f88194d886b61343cf4ede317c79a74522f24df8ed1f8e55

Contents?: true

Size: 259 Bytes

Versions: 18

Compression:

Stored size: 259 Bytes

Contents

require 'spec_helper'

describe Dydx::Algebra::Operator::Parts::Base do
  it{ expect((:x + :x).to_s).to eq('( 2 * x )') }
  it{ expect((:x - :x).to_s).to eq('0') }
  it{ expect((:x * :x).to_s).to eq('( x ^ 2 )') }
  it{ expect((:x / :x).to_s).to eq('1') }
end

Version data entries

18 entries across 18 versions & 1 rubygems

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