From fe451208fed2efd27c952298c5a4a1a4fa147446 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 1 Jun 2025 11:59:05 -1000 Subject: [PATCH] ;dev: add.test: add a space before non-hledger commands [#2356] This prevents `shelltest -w HLEDGERBIN` from disturbing those commands. --- hledger/test/add.test | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/hledger/test/add.test b/hledger/test/add.test index aa56273f0..8af0a5bb2 100644 --- a/hledger/test/add.test +++ b/hledger/test/add.test @@ -110,7 +110,7 @@ a b 0.5 c -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /Amount 3 \[-0.75\]:/ >2 // @@ -124,7 +124,7 @@ a b -50 USD == 50 USD . -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > // >2 /Balance assertion failed in b/ @@ -142,7 +142,7 @@ a a -10 USD = 0 USD . -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /Save this transaction to the journal/ >2 // @@ -158,7 +158,7 @@ a c -500 JPY . -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /Save this transaction to the journal/ >2 // @@ -182,7 +182,7 @@ c . # Check the output with c to make sure we get to the final transaction display # (anything generic is also in the first transaction) -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /c[[:space:]]+-10 USD/ >2 // @@ -199,7 +199,7 @@ a a -500 MXN =* 0 MXN . -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /Save this transaction to the journal/ >2 // @@ -216,7 +216,7 @@ x2 (a) 3 = 3 ; date:2025-05-01 . -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /\(a\)[[:space:]]+3 = 3 ; date:2025-05-01/ >2 // @@ -229,7 +229,7 @@ a b -10 USD . -$ rm -f nosuch.journal; hledger -f nosuch.journal -I add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal -I add; rm -f nosuch.journal > /Save this transaction to the journal/ >2 // @@ -242,7 +242,7 @@ a b -10 USD . -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > /Save this transaction to the journal/ >2 // @@ -260,7 +260,7 @@ y x a 10 USD -$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal +$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal > // >2 /Balance assertion failed in a/