Sha256: 520c673b15e2d8ff6da35c6d917ffbe1c0dc2a4d11c0d94a99bdc7e597a2ac14
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
require 'spec_helper' describe 'integration of negative' do describe 'with a sum' do subject do Danica::Negative.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('-\left(1 + 2 + 3\right)') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems