spec/integration/addition_spec.rb in danica-2.4.2 vs spec/integration/addition_spec.rb in danica-2.4.3

- old
+ new

@@ -6,22 +6,23 @@ Danica::Operator::Addition.new( Danica::Wrapper::Negative.new(1), 2, -3, 4, - Danica::Wrapper::PlusMinus.new(5) + Danica::Wrapper::PlusMinus.new(5), + Danica::Wrapper::Number.new(-6) ) end describe '#to_gnu' do it 'returns the correct string' do - expect(subject.to_gnu).to eq('-1 + 2 -3 + 4 + 5') + expect(subject.to_gnu).to eq('-1 + 2 -3 + 4 + 5 -6') end end describe '#to_tex' do it 'returns the correct string' do - expect(subject.to_tex).to eq('-1 + 2 -3 + 4 \pm 5') + expect(subject.to_tex).to eq('-1 + 2 -3 + 4 \pm 5 -6') end end end end