Add test for assertion combined with posting date

This commit is contained in:
Michael Rees 2025-05-28 22:09:10 -05:00 committed by Simon Michael
parent 5a4aa87df8
commit 636860363f

View File

@ -203,7 +203,25 @@ $ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal
> /Save this transaction to the journal/
>2 //
## 15. shouldn't add decimals if there aren't any
## 15. Assertion combined with posting date
<
2025-05-10
x
(a)
10
.
y
2025-05-10
x2
(a)
3 = 3 ; date:2025-05-01
.
$ rm -f nosuch.journal; hledger -f nosuch.journal add; rm -f nosuch.journal
> /\(a\)[[:space:]]+3 = 3 ; date:2025-05-01/
>2 //
## 16. shouldn't add decimals if there aren't any
## printf '\n\na\n1\nb\n' | hledger -f /dev/null add
# <
#