Sha256: 7b06a1a70fa8bdac209faf9150d44255be8448177d205f0a9dacc199af584231
Contents?: true
Size: 603 Bytes
Versions: 4
Compression:
Stored size: 603 Bytes
Contents
require 'spec_helper' describe 'integration of sum' do describe 'with negative and positivenegative (+/-) numbers' do subject do Danica::Sum.new( Danica::Negative.new(1), 2, Danica::Negative.new(3), 4, Danica::PositiveNegative.new(5) ) end describe '#to_gnu' do it 'returns the correct string' do expect(subject.to_gnu).to eq('-1 + 2 -3 + 4 + 5') end end describe '#to_tex' do it 'returns the correct string' do expect(subject.to_tex).to eq('-1 + 2 -3 + 4 \pm 5') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
danica-2.2.1 | spec/integration/sum_spec.rb |
danica-2.2.0 | spec/integration/sum_spec.rb |
danica-2.1.1 | spec/integration/sum_spec.rb |
danica-2.1.0 | spec/integration/sum_spec.rb |