Sha256: a9a9d54239bc7d5fe32e56b379fb9eb64a68644d29d7e290181f4c769d14099f
Contents?: true
Size: 550 Bytes
Versions: 18
Compression:
Stored size: 550 Bytes
Contents
require 'spec_helper' describe 'integration of power' do describe 'of additions' do subject do Danica::Operator::Power.new( Danica::Operator::Addition.new(3, 4), Danica::Operator::Addition.new(5, 6) ) end describe '#to_gnu' do it 'returns the correct string' do expect(subject.to_gnu).to eq('(3 + 4)**(5 + 6)') end end describe '#to_tex' do it 'returns the correct string' do expect(subject.to_tex).to eq('\left(3 + 4\right)^{5 + 6}') end end end end
Version data entries
18 entries across 18 versions & 1 rubygems