Sha256: eb6edc242563d88ddcb7e6cfceda41a0ce6bed3037f5e75aeeef01b1a8501377
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' describe 'integration of addition' do describe 'with negative and positivenegative (+/-) numbers' do subject do Danica::Operator::Addition.new( Danica::Wrapper::Negative.new(1), 2, Danica::Wrapper::Negative.new(3), 4, Danica::Wrapper::PlusMinus.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.4.1 | spec/integration/addition_spec.rb |
danica-2.4.0 | spec/integration/addition_spec.rb |
danica-2.3.1 | spec/integration/addition_spec.rb |
danica-2.3.0 | spec/integration/sum_spec.rb |