Skip to content

Commit 8fd1b19

Browse files
committed
Fix currency test
1 parent dfbeb70 commit 8fd1b19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_currency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def test_constructor_whole_string():
1616

1717
def test_constructor_nano_int():
1818
n = 500
19-
assert Currency(n, format=CurrencyFormat.MICRO)
19+
assert Currency(n, format=CurrencyFormat.NANO)
2020

2121
def test_add():
2222
assert (Currency(5) + Currency(2)).nanocodas() == 7 * precision
@@ -37,4 +37,4 @@ def test_mul_int():
3737
assert (Currency(5) * 2).nanocodas() == 10 * precision
3838

3939
def test_mul_currency():
40-
assert (Currency(5) * Currency(2, format=CurrencyFormat.MICRO)).nanocodas() == 10 * precision
40+
assert (Currency(5) * Currency(2, format=CurrencyFormat.NANO)).nanocodas() == 10 * precision

0 commit comments

Comments
 (0)