Add test for assertion combined with posting date
This commit is contained in:
parent
5a4aa87df8
commit
636860363f
@ -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
|
||||
# <
|
||||
#
|
||||
|
||||
Loading…
Reference in New Issue
Block a user