diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-01 22:20:20 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-01 22:20:20 -0600 |
commit | a0c9ab08dccf65259474b5da97e4f5b092741779 (patch) | |
tree | 834eba1387510ad8f012091c41b34153fa06fc6e /test/baseline/feat-value_py.test | |
parent | 4e377489990e8c11ebe3cc7d7dced90d0fa76202 (diff) | |
download | fork-ledger-a0c9ab08dccf65259474b5da97e4f5b092741779.tar.gz fork-ledger-a0c9ab08dccf65259474b5da97e4f5b092741779.tar.bz2 fork-ledger-a0c9ab08dccf65259474b5da97e4f5b092741779.zip |
Added more baseline testing, for valexprs and Python
Diffstat (limited to 'test/baseline/feat-value_py.test')
-rw-r--r-- | test/baseline/feat-value_py.test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/baseline/feat-value_py.test b/test/baseline/feat-value_py.test new file mode 100644 index 00000000..5efe315d --- /dev/null +++ b/test/baseline/feat-value_py.test @@ -0,0 +1,23 @@ +python + def print_type(val): + print type(val), val + +eval print_type(true) +eval print_type([2010/08/10]) +eval print_type(10) +eval print_type($10.00) +eval print_type($10.00 + CAD 30) +eval print_type("Hello!") +eval print_type(/Hello!/) +;eval print_type((1, 2, 3)) + +test reg +<type 'bool'> True +<type 'datetime.date'> 2010-08-10 +<class 'ledger.Amount'> 10 +<class 'ledger.Amount'> $10.00 +<class 'ledger.Balance'> $10.00 +CAD 30 +<type 'unicode'> Hello! +<class 'ledger.Value'> Hello! +end test |