;dev: test: number report-interval tests

This commit is contained in:
Simon Michael 2023-01-11 20:51:50 -10:00
parent 93f74f7a0e
commit 8c496b7f06

View File

@ -10,22 +10,23 @@
# The last report interval option takes precedence.
# 1. The last report interval option takes precedence.
$ hledger -f- register --weekly --monthly
2019-01 a 2 2
2019-02 a 1 3
# 2.
$ hledger -f- register --monthly --weekly
2018-12-31W01 a 2 2
2019-01-28W05 a 1 3
# The last report interval option takes precedence.
# 3. The last report interval option takes precedence.
# The --period expression is no exception.
$ hledger -f- register -p 'monthly in 2019' --weekly
2018-12-31W01 a 2 2
2019-01-28W05 a 1 3
# 4.
$ hledger -f- register --weekly -p 'monthly in 2019'
2019-01 a 2 2
2019-02 a 1 3
@ -39,15 +40,17 @@ $ hledger -f- register --weekly -p 'monthly in 2019'
# --monthly -p2019
# -p2019 --monthly
# -p 'monthly in 2019'
# 5.
$ hledger -f- register --monthly -p 2019
2019-01 a 2 2
2019-02 a 1 3
# 6.
$ hledger -f- register -p 2019 --monthly
2019-01 a 2 2
2019-02 a 1 3
# 7.
$ hledger -f- register -p 'monthly in 2019'
2019-01 a 2 2
2019-02 a 1 3