summaryrefslogtreecommitdiff
path: root/test/baseline/feat-value_py3.test
blob: f82fbf2ba56c52413462a7f9ba034c1f5c52b727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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