From 1a8353457d17bcf13939e78e294bc41056017328 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 10 Aug 2010 02:52:53 +0000 Subject: [PATCH] a test for the !include with relative paths issue (#21) --- tests/include.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/include.test diff --git a/tests/include.test b/tests/include.test new file mode 100644 index 000000000..6e9ebca76 --- /dev/null +++ b/tests/include.test @@ -0,0 +1,12 @@ +# nested includes in subdirectories +mkdir -p b/c ; printf '2010/1/1\n (C) 1\n' >b/c/c.journal ; printf '2010/1/1\n (B) 1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A) 1\n!include b/b.journal\n' >a.journal ; hledger -f a.journal print; rm -rf b +>>> +2010/01/01 + (A) 1 + +2010/01/01 + (B) 1 + +2010/01/01 + (C) 1 +