mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
pemdas test for amount field
This commit is contained in:
parent
b64b8118e9
commit
8000826fad
1 changed files with 1 additions and 0 deletions
|
@ -1361,6 +1361,7 @@ class APITestCase(IhatemoneyTestCase):
|
||||||
input_expected = [
|
input_expected = [
|
||||||
("((100 + 200.25) * 2 - 100) / 2", 250.25),
|
("((100 + 200.25) * 2 - 100) / 2", 250.25),
|
||||||
("3/2", 1.5),
|
("3/2", 1.5),
|
||||||
|
("2 + 1 * 5 - 2 / 1", 5),
|
||||||
]
|
]
|
||||||
|
|
||||||
for i, pair in enumerate(input_expected):
|
for i, pair in enumerate(input_expected):
|
||||||
|
|
Loading…
Reference in a new issue