Sha256: 2cb82e894b7d6cb1a77ab1b140fc46294912f77600b540414d246ae3fd66b7b3
Contents?: true
Size: 521 Bytes
Versions: 18
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' describe 'integration of positive negative' do describe 'with a addition' do subject do Danica::Wrapper::PlusMinus.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('\pm \left(1 + 2 + 3\right)') end end end end
Version data entries
18 entries across 18 versions & 1 rubygems