diff options
Diffstat (limited to 'test/baseline')
-rw-r--r-- | test/baseline/feat-value_py2.test (renamed from test/baseline/feat-value_py.test) | 0 | ||||
-rw-r--r-- | test/baseline/feat-value_py3.test | 24 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/baseline/feat-value_py.test b/test/baseline/feat-value_py2.test index 2f351d2a..2f351d2a 100644 --- a/test/baseline/feat-value_py.test +++ b/test/baseline/feat-value_py2.test diff --git a/test/baseline/feat-value_py3.test b/test/baseline/feat-value_py3.test new file mode 100644 index 00000000..be7612e1 --- /dev/null +++ b/test/baseline/feat-value_py3.test @@ -0,0 +1,24 @@ +python + from __future__ import print_function + 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 +<class 'bool'> True +<class 'datetime.date'> 2010-08-10 +<class 'ledger.Amount'> 10 +<class 'ledger.Amount'> $10.00 +<class 'ledger.Balance'> $10.00 +CAD 30 +<class 'str'> Hello! +<class 'ledger.Value'> Hello! +end test |