Skip to content

Commit

Permalink
add test for adding percentages
Browse files Browse the repository at this point in the history
  • Loading branch information
rubysolo committed Jul 4, 2024
1 parent b885d41 commit 22db905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/calculator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
expect(calculator.evaluate("400/60%").round(2)).to eq (666.67)
expect(calculator.evaluate("(400/60%)*1").round(2)).to eq (666.67)
expect(calculator.evaluate("60% * 1").round(2)).to eq (0.60)
expect(calculator.evaluate("50% + 50%")).to eq (1.0)
end

describe 'evaluate' do
Expand Down

0 comments on commit 22db905

Please sign in to comment.