Sha256: 2cb82e894b7d6cb1a77ab1b140fc46294912f77600b540414d246ae3fd66b7b3

Contents?: true

Size: 521 Bytes

Versions: 18

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

describe 'integration of positive negative' do
  describe 'with a addition' do
    subject do
      Danica::Wrapper::PlusMinus.new(
        Danica::Operator::Addition.new(1,2,3)
      )
    end

    describe '#to_gnu' do
      it 'returns the correct string' do
        expect(subject.to_gnu).to eq('+ (1 + 2 + 3)')
      end
    end

    describe '#to_tex' do
      it 'returns the correct string' do
        expect(subject.to_tex).to eq('\pm \left(1 + 2 + 3\right)')
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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