Sha256: 7838366fb9f86ce63ce6821898181e5d0f561a27f5339a881836d2126749ad5c
Contents?: true
Size: 508 Bytes
Versions: 15
Compression:
Stored size: 508 Bytes
Contents
require 'spec_helper' describe 'integration of negative' do describe 'with a addition' do subject do Danica::Wrapper::Negative.new( Danica::Operator::Addition.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
15 entries across 15 versions & 1 rubygems