Sha256: 0a9c0ae5b8c548d1aa7826948c00e1fb0cf6a9326bd21558bd1cb853663500d5
Contents?: true
Size: 574 Bytes
Versions: 3
Compression:
Stored size: 574 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Danica::Operator::Power do describe 'of additions' do subject do described_class.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
3 entries across 3 versions & 1 rubygems