diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 22:27:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 22:27:15 +0000 |
commit | 1ab0add0afbd91624133141158349c3551c42a93 (patch) | |
tree | 8d2773b2b51bfdd5713651c7f71a57d98eafca54 /test/baseline/feat-value_py.test | |
parent | 14db8c8f10377607c85a7fe449af8001a64f088e (diff) | |
parent | cf8fd54ebb5b043e20044224d3f2ad6ddc896e2f (diff) | |
download | fork-ledger-1ab0add0afbd91624133141158349c3551c42a93.tar.gz fork-ledger-1ab0add0afbd91624133141158349c3551c42a93.tar.bz2 fork-ledger-1ab0add0afbd91624133141158349c3551c42a93.zip |
Merge pull request #2310 from afh/remove-py2-tests
test: Remove Python2 specific tests
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 |