hledger/hledger/test/check-uniqueleafnames.test

22 lines
571 B
Plaintext

# check uniqueleafnames succeeds when all account leaf names are unique
<
2020-01-01
(a) 1
(a:aa) 1
$ hledger -f- check uniqueleafnames
# and otherwise fails
<
2020-01-01
(a) 1
(b:a) 1
$ hledger -f- check uniqueleafnames
>2 /a as a, b:a/
>=1
# XXX
# improve message
# Reports account names having the same leaf but different prefixes.
# In other words, two or more leaves that are categorized differently.
# Reads the default journal file, or another specified as an argument.
# An example: <http://stefanorodighiero.net/software/hledger-dupes.html>