Skip to content

Commit

Permalink
Add tests for "off of" and "less" operators
Browse files Browse the repository at this point in the history
  • Loading branch information
ptmcg committed May 6, 2021
1 parent 788838a commit 1641bec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_example_parsers/test_business_arithmetic_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class TestCalculations:
("25%", 0.25),
("20 * 50%", 10),
("50% of 20", 10),
("20% of 50", 10),
("20% off", 0.8),
("20% off of 50", 40),
("50 less 20%", 40),
("20 * (1 - 20%)", 16),
("(100 - 20)% of 20", 16),
("5 / 20%", 25),
Expand Down

0 comments on commit 1641bec

Please sign in to comment.