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

- old
+ new

@@ -20,9 +20,11 @@ expect(calculator.evaluate('(-2 + 3) - 1')).to eq(0) expect(calculator.evaluate('(-2 - 3) - 1')).to eq(-6) 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) end describe 'memory' do it { expect(calculator).to be_empty } it { expect(with_memory).not_to be_empty }