;dev: add.test: add a space before non-hledger commands [#2356]

This prevents `shelltest -w HLEDGERBIN` from disturbing those commands.
This commit is contained in:
Simon Michael 2025-06-01 11:59:05 -10:00
parent c3cc1d846b
commit fe451208fe

View File

@ -110,7 +110,7 @@ a
b b
0.5 0.5
c 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\]:/ > /Amount 3 \[-0.75\]:/
>2 // >2 //
@ -124,7 +124,7 @@ a
b b
-50 USD == 50 USD -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/ >2 /Balance assertion failed in b/
@ -142,7 +142,7 @@ a
a a
-10 USD = 0 USD -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/ > /Save this transaction to the journal/
>2 // >2 //
@ -158,7 +158,7 @@ a
c c
-500 JPY -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/ > /Save this transaction to the journal/
>2 // >2 //
@ -182,7 +182,7 @@ c
. .
# Check the output with c to make sure we get to the final transaction display # Check the output with c to make sure we get to the final transaction display
# (anything generic is also in the first transaction) # (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/ > /c[[:space:]]+-10 USD/
>2 // >2 //
@ -199,7 +199,7 @@ a
a a
-500 MXN =* 0 MXN -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/ > /Save this transaction to the journal/
>2 // >2 //
@ -216,7 +216,7 @@ x2
(a) (a)
3 = 3 ; date:2025-05-01 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/ > /\(a\)[[:space:]]+3 = 3 ; date:2025-05-01/
>2 // >2 //
@ -229,7 +229,7 @@ a
b b
-10 USD -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/ > /Save this transaction to the journal/
>2 // >2 //
@ -242,7 +242,7 @@ a
b b
-10 USD -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/ > /Save this transaction to the journal/
>2 // >2 //
@ -260,7 +260,7 @@ y
x x
a a
10 USD 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/ >2 /Balance assertion failed in a/