diff options
author | Johann Klähn <kljohann@gmail.com> | 2012-10-13 19:38:42 +0200 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2012-10-13 19:39:10 +0200 |
commit | 1f2fe401f1e98a9a1d3122b79593e12a668bfb43 (patch) | |
tree | 6648c75fb260b99bab2fa199a1f47e10db079398 /test/regress | |
parent | c2cc47bc986fbceedf79af55eb87b46fa99fe497 (diff) | |
download | fork-ledger-1f2fe401f1e98a9a1d3122b79593e12a668bfb43.tar.gz fork-ledger-1f2fe401f1e98a9a1d3122b79593e12a668bfb43.tar.bz2 fork-ledger-1f2fe401f1e98a9a1d3122b79593e12a668bfb43.zip |
ignore (some) empty field when converting csv
This fixes bug #733 and bug #734.
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/0DDDEBC0.dat | 3 | ||||
-rw-r--r-- | test/regress/0DDDEBC0.test | 9 | ||||
-rw-r--r-- | test/regress/A3FA7601.dat | 3 | ||||
-rw-r--r-- | test/regress/A3FA7601.test | 9 |
4 files changed, 24 insertions, 0 deletions
diff --git a/test/regress/0DDDEBC0.dat b/test/regress/0DDDEBC0.dat new file mode 100644 index 00000000..21b6fce1 --- /dev/null +++ b/test/regress/0DDDEBC0.dat @@ -0,0 +1,3 @@ +date,posted,amount, +12/12/2011,12/13/2011,$10, +12/12/2011,,$20, diff --git a/test/regress/0DDDEBC0.test b/test/regress/0DDDEBC0.test new file mode 100644 index 00000000..cccb1b6b --- /dev/null +++ b/test/regress/0DDDEBC0.test @@ -0,0 +1,9 @@ +test -f /dev/null --input-date-format '%m/%d/%Y' convert test/regress/0DDDEBC0.dat +2011/12/12=2011/12/13 * + Expenses:Unknown $10 + Equity:Unknown + +2011/12/12 * + Expenses:Unknown $20 + Equity:Unknown +end test diff --git a/test/regress/A3FA7601.dat b/test/regress/A3FA7601.dat new file mode 100644 index 00000000..9a734e67 --- /dev/null +++ b/test/regress/A3FA7601.dat @@ -0,0 +1,3 @@ +date,posted,code,payee,amount,total,note, +12/12/2011,12/13/2011,100,Test,$10,$20,test, +12/12/2011,12/12/2011,,,$10,$20, diff --git a/test/regress/A3FA7601.test b/test/regress/A3FA7601.test new file mode 100644 index 00000000..5029f6d8 --- /dev/null +++ b/test/regress/A3FA7601.test @@ -0,0 +1,9 @@ +test -f /dev/null --input-date-format '%m/%d/%Y' convert test/regress/A3FA7601.dat +2011/12/12=2011/12/13 * (100) Test ;test + Expenses:Unknown $10 + Equity:Unknown $-10 = $20 + +2011/12/12=2011/12/12 * + Expenses:Unknown $10 + Equity:Unknown $-10 = $20 +end test |