hledger/tests/timelog-stack-overflow.test
Simon Michael be30aac3f5 fix an occasional stack overflow error due to infinite recursion in Posting/Transaction equality tests
This was happening with balance command on certain timelog entries, since 0.8.
Now, when testing two postings for equality, their parent transaction's identity is ignored.
2010-05-22 00:45:35 +00:00

14 lines
335 B
Plaintext

# this gave a stack space overflow error with 0.8-0.9 due to infinite
# recursion in Posting and Transaction's equality tests:
bin/hledger -f - balance
<<<
i 2010/1/1 09:00:00 a:b
o 2010/1/1 09:03:00
>>>=0
# incidentally this didn't trigger it.. go figure
bin/hledger -f - balance
<<<
i 2010/1/1 09:00:00 a:b
o 2010/1/1 09:02:00
>>>=0