diff options
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -2,15 +2,21 @@ from amounts import * +amt_ncd = Amount("100") +print amt_ncd +amt_nc = Amount("100.00") +print amt_nc +amt = Amount("$100.00") +print amt +namt_ncd = Amount("-100") +print namt_ncd +namt_nc = Amount("-100.00") +print namt_nc +namt = Amount("$-100.00") +print namt +namt2 = Amount("-$100.00") +print namt2 + val = Value("$100.00") print val - -amt = Amount("$100.00") - -print amt.commodity -amt.commodity = amt.commodity -print amt -amt.commodity = NullCommodity -print amt -print amt.quantity |