summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/test.py b/test.py
index 389f9d33..49276de0 100755
--- a/test.py
+++ b/test.py
@@ -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