Sha256: eea39ae483354481c6800a80ed0987f918abced4ebe51b94a24111e829c0ee51
Contents?: true
Size: 759 Bytes
Versions: 3
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Danica::Operator::Addition do describe 'integration' do describe 'with negative and positivenegative (+/-) numbers' do subject do described_class.new( Danica::Wrapper::Negative.new(1), 2, -3, 4, Danica::Wrapper::PlusMinus.new(5), Danica::Wrapper::Number.new(-6) ) end describe '#to_gnu' do it 'returns the correct string' do expect(subject.to_gnu).to eq('-1 + 2 -3 + 4 + 5 -6') end end describe '#to_tex' do it 'returns the correct string' do expect(subject.to_tex).to eq('-1 + 2 -3 + 4 \pm 5 -6') end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems