diff --git a/tests/cli/a.j b/tests/cli/a.j new file mode 100644 index 000000000..429d7f860 --- /dev/null +++ b/tests/cli/a.j @@ -0,0 +1,2 @@ +2018/1/1 a1 + (a) 1 diff --git a/tests/cli/b.j b/tests/cli/b.j new file mode 100644 index 000000000..ca605cfbf --- /dev/null +++ b/tests/cli/b.j @@ -0,0 +1,2 @@ +2018/1/1 b1 + (b) 1 diff --git a/tests/cli/multiple-files.test b/tests/cli/multiple-files.test index 1963737dc..8cf9d28bf 100644 --- a/tests/cli/multiple-files.test +++ b/tests/cli/multiple-files.test @@ -58,3 +58,11 @@ hledger print -f personal.journal -f ../journal/a.timeclock -f ../journal/b.time >>>2 >>>=0 + +# 4. same-date transactions in different files are shown in the right order +hledger -f a.j -f b.j reg +>>> +2018/01/01 a1 (a) 1 1 +2018/01/01 b1 (b) 1 2 +>>>2 +>>>=0