From bf6782327927fba8010b31b423a3dd81049c3437 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Wed, 4 Jul 2018 17:54:15 +0300 Subject: [PATCH] Add a test --- tests/cli/a.j | 2 ++ tests/cli/b.j | 2 ++ tests/cli/multiple-files.test | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 tests/cli/a.j create mode 100644 tests/cli/b.j 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