diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 23:27:55 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 23:27:55 +0100 |
commit | ecbfaa9c2e6733d516351d0a815b4cd822bfed39 (patch) | |
tree | 83af279c13a4a6d1032650aca4f7a2b21b49ad3e /test/baseline/feat-value_py.test | |
parent | 2c0cf2e0c933b16a107cc29451ad92d3a48bb481 (diff) | |
parent | 1ab0add0afbd91624133141158349c3551c42a93 (diff) | |
download | fork-ledger-ecbfaa9c2e6733d516351d0a815b4cd822bfed39.tar.gz fork-ledger-ecbfaa9c2e6733d516351d0a815b4cd822bfed39.tar.bz2 fork-ledger-ecbfaa9c2e6733d516351d0a815b4cd822bfed39.zip |
Merge branch 'master' into modernize-test-scripts
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..f82fbf2b --- /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 +<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 |