spec/calculator_spec.rb in dentaku-1.2.3 vs spec/calculator_spec.rb in dentaku-1.2.4

- old
+ new

@@ -22,9 +22,11 @@ expect(calculator.evaluate('1 + -2 ^ 2')).to eq(-3) expect(calculator.evaluate('3 + -num', :num => 2)).to eq(1) expect(calculator.evaluate('-num + 3', :num => 2)).to eq(1) expect(calculator.evaluate('10 ^ 2')).to eq(100) expect(calculator.evaluate('0 * 10 ^ -5')).to eq(0) + expect(calculator.evaluate('3 + 0 * -3')).to eq(3) + expect(calculator.evaluate('3 + 0 / -3')).to eq(3) end describe 'memory' do it { expect(calculator).to be_empty } it { expect(with_memory).not_to be_empty }