Sha256: deacb4db0e51d3d9a787419a1892173e47c9d761107c4e5770a545c10ab5ed7f

Contents?: true

Size: 336 Bytes

Versions: 9

Compression:

Stored size: 336 Bytes

Contents

require 'spec_helper'

describe Danica::Equation do
  subject do
    described_class.build(:x, :y, :z) do
      left { x ** 2 + y ** 2 }
      right { number(1) - z ** 2 }
    end.new
  end

  describe '#to_gnu' do
    it 'generates the gnu format' do
      expect(subject.to_gnu).to eq('x**(2) + y**(2) = 1 -z**(2)')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
danica-2.7.4 spec/integration/readme/equation_spec.rb
danica-2.7.3 spec/integration/readme/equation_spec.rb
danica-2.7.2 spec/integration/readme/equation_spec.rb
danica-2.7.1 spec/integration/readme/equation_spec.rb
danica-2.6.4 spec/integration/readme/equation_spec.rb
danica-2.6.3 spec/integration/readme/equation_spec.rb
danica-2.6.2 spec/integration/readme/equation_spec.rb
danica-2.6.1 spec/integration/readme/equation_spec.rb
danica-2.6.0 spec/integration/readme/equation_spec.rb