Skip to content

Commit 1641bec

Browse files
committed
Add tests for "off of" and "less" operators
1 parent 788838a commit 1641bec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_example_parsers/test_business_arithmetic_parser.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ class TestCalculations:
1616
("25%", 0.25),
1717
("20 * 50%", 10),
1818
("50% of 20", 10),
19+
("20% of 50", 10),
20+
("20% off", 0.8),
21+
("20% off of 50", 40),
22+
("50 less 20%", 40),
1923
("20 * (1 - 20%)", 16),
2024
("(100 - 20)% of 20", 16),
2125
("5 / 20%", 25),

0 commit comments

Comments
 (0)