summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2013-01-18 18:26:03 +0100
committerJohann Klähn <kljohann@gmail.com>2013-01-18 18:26:03 +0100
commitb3b11bed3be9c7a6dcd4a4427eb02fa7d92f34ed (patch)
treecd5008b6a42cd65c9fe668a92e10237fcec335c4 /test
parent83bd3234d32d7a82d583e4f50f8f90837aa15a93 (diff)
parent385cbd25b9905b16a4c7723bb4e5a5813e84aab0 (diff)
downloadfork-ledger-b3b11bed3be9c7a6dcd4a4427eb02fa7d92f34ed.tar.gz
fork-ledger-b3b11bed3be9c7a6dcd4a4427eb02fa7d92f34ed.tar.bz2
fork-ledger-b3b11bed3be9c7a6dcd4a4427eb02fa7d92f34ed.zip
Merge branch 'master' into next
Some commits were on the master branch but not yet on the next branch due to a pull request to master after those two branches diverged. This merge ensures that next ⊇ master.
Diffstat (limited to 'test')
-rw-r--r--test/baseline/cmd-convert.test2
-rw-r--r--test/regress/0DDDEBC0.dat3
-rw-r--r--test/regress/0DDDEBC0.test9
-rw-r--r--test/regress/68917252.dat2
-rw-r--r--test/regress/68917252.test5
-rw-r--r--test/regress/A3FA7601.dat3
-rw-r--r--test/regress/A3FA7601.test9
7 files changed, 32 insertions, 1 deletions
diff --git a/test/baseline/cmd-convert.test b/test/baseline/cmd-convert.test
index 1c36d4bb..d444da52 100644
--- a/test/baseline/cmd-convert.test
+++ b/test/baseline/cmd-convert.test
@@ -4,7 +4,7 @@ test -f /dev/null --input-date-format "%m/%d/%Y" convert test/baseline/cmd-conve
Expenses:Unknown $10
Equity:Unknown $-10 = $20
-2011/12/12=2011/12/12 * ;
+2011/12/12=2011/12/12 *
Expenses:Unknown $10
Equity:Unknown
end test
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/68917252.dat b/test/regress/68917252.dat
new file mode 100644
index 00000000..8857f741
--- /dev/null
+++ b/test/regress/68917252.dat
@@ -0,0 +1,2 @@
+date,amount,
+12/12/2011,10,test,extra,fields
diff --git a/test/regress/68917252.test b/test/regress/68917252.test
new file mode 100644
index 00000000..52fde1d9
--- /dev/null
+++ b/test/regress/68917252.test
@@ -0,0 +1,5 @@
+test -f /dev/null --input-date-format "%m/%d/%Y" convert test/regress/68917252.dat
+2011/12/12 *
+ Expenses:Unknown 10
+ 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