Sha256: 6df69d1fb89b39691692dd13723ffe0f20c947fb770b94d122df2d94ccdecbee
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
require 'spec_helper' describe 'integration of positive negative' do describe 'with a sum' do subject do Danica::PositiveNegative.new( Danica::Sum.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
4 entries across 4 versions & 1 rubygems