ledger/test/regress/1050.test
Martin Michlmayr 23902686a3 Don't lose commodity when cost is not separated by whitespace
When a cost was specified without a whitespace after the @ symbol,
as in @$5.01, this was incorrectly parsed as 5.01 (losing the
commodity) rather than $5.01.

Bug fix for #1050
2014-06-05 19:46:22 -04:00

39 lines
579 B
Text

D $1000.00
D £1000.00
D €1000.00
D 1000.00 EUR
2014-06-05 * Test
A 2 EUR @$1.37
C
2014-06-05 * Test
A 2 EUR @@£1.62
C
2014-06-05 * Test
A 2 EUR (@)€1.00
C
2014-06-05 * Test
A 2 EUR (@@)€2.00
C
test bal
8.00 EUR A
$-2.74
£-1.62
€-4.00 C
--------------------
$-2.74
8.00 EUR
£-1.62
€-4.00
end test
test pricedb
P 2014/06/05 00:00:00 EUR $1.37
P 2014/06/05 00:00:00 EUR £0.81
end test