hledger/tests/commodities.test
2010-09-03 20:51:01 +00:00

32 lines
617 B
Plaintext

# a commodity may contain/end with numbers, if double quoted
# 1. without quotes, fail. XXX parse error should be clearer here
bin/hledger -f- print
<<<
2010-04-05 x
a 10 DE0002635307
b
>>>2 /unexpected "0"/
>>>= 1
# 2. with quotes, ok; quotes appear in print output
bin/hledger -f- print
<<<
2010-04-05 x
a 10 "DE0002635307"
b
>>>
2010/04/05 x
a 10 "DE0002635307"
b -10 "DE0002635307"
# 3. and in other reports too, I guess
bin/hledger -f- balance
<<<
2010-04-05 x
a 10 "DE0002635307"
b
>>>
10 "DE0002635307" a
-10 "DE0002635307" b
--------------------
0 "DE0002635307"