From 1641bec0dd472e6ea8768076aabc2f2ffc6a6ece Mon Sep 17 00:00:00 2001 From: ptmcg Date: Thu, 6 May 2021 10:59:53 -0500 Subject: [PATCH] Add tests for "off of" and "less" operators --- test/test_example_parsers/test_business_arithmetic_parser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_example_parsers/test_business_arithmetic_parser.py b/test/test_example_parsers/test_business_arithmetic_parser.py index e3bf439..bd1f595 100644 --- a/test/test_example_parsers/test_business_arithmetic_parser.py +++ b/test/test_example_parsers/test_business_arithmetic_parser.py @@ -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),