Skip to content

Commit

Permalink
Add BROKEN regression test for ledger#374
Browse files Browse the repository at this point in the history
  • Loading branch information
bcc32 committed Mar 24, 2024
1 parent fb09516 commit d626eca
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/state-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,32 @@ https://github.com/ledger/ledger-mode/issues/274"
Expenses:Food:Groceries $ 44.00 ; hastag: not block
Assets:Checking"))))


(ert-deftest ledger-state/test-004 ()
"Regression test for #374
https://github.com/ledger/ledger-mode/issues/374"

(ledger-tests-with-temp-file
"2024/01/01 Test
Expenses $4.00
Assets
;; Some comments.
;; Try hitting `ledger-toggle-current' from this line
"
(setq ledger-clear-whole-transactions t)
(goto-char (1- (point-max)))
(ledger-toggle-current)
(should
(equal (buffer-string)
"2024/01/01 Test
Expenses $4.00
Assets
;; Some comments.
;; Try hitting `ledger-toggle-current' from this line
"))))

(provide 'state-test)

;;; state-test.el ends here

0 comments on commit d626eca

Please sign in to comment.