Sha256: a9a9d54239bc7d5fe32e56b379fb9eb64a68644d29d7e290181f4c769d14099f

Contents?: true

Size: 550 Bytes

Versions: 18

Compression:

Stored size: 550 Bytes

Contents

require 'spec_helper'

describe 'integration of power' do
  describe 'of additions' do
    subject do
      Danica::Operator::Power.new(
        Danica::Operator::Addition.new(3, 4),
        Danica::Operator::Addition.new(5, 6)
      )
    end

    describe '#to_gnu' do
      it 'returns the correct string' do
        expect(subject.to_gnu).to eq('(3 + 4)**(5 + 6)')
      end
    end

    describe '#to_tex' do
      it 'returns the correct string' do
        expect(subject.to_tex).to eq('\left(3 + 4\right)^{5 + 6}')
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
danica-2.7.4 spec/integration/power_spec.rb
danica-2.7.3 spec/integration/power_spec.rb
danica-2.7.2 spec/integration/power_spec.rb
danica-2.7.1 spec/integration/power_spec.rb
danica-2.6.4 spec/integration/power_spec.rb
danica-2.6.3 spec/integration/power_spec.rb
danica-2.6.2 spec/integration/power_spec.rb
danica-2.6.1 spec/integration/power_spec.rb
danica-2.6.0 spec/integration/power_spec.rb
danica-2.5.1 spec/integration/power_spec.rb
danica-2.5.0 spec/integration/power_spec.rb
danica-2.4.4 spec/integration/power_spec.rb
danica-2.4.3 spec/integration/power_spec.rb
danica-2.4.2 spec/integration/power_spec.rb
danica-2.4.1 spec/integration/power_spec.rb
danica-2.4.0 spec/integration/power_spec.rb
danica-2.3.1 spec/integration/power_spec.rb
danica-2.3.0 spec/integration/power_spec.rb