;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:
parent
c3cc1d846b
commit
fe451208fe
@ -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/
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user