[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/beancount b6e34fcb49 035/103: beancount.el: Add simple com
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/beancount b6e34fcb49 035/103: beancount.el: Add simple completion-at-point test |
Date: |
Mon, 29 Apr 2024 15:59:44 -0400 (EDT) |
branch: elpa/beancount
commit b6e34fcb49bdff518ed06248b2fbe35119d34f7f
Author: Daniele Nicolodi <daniele@grinta.net>
Commit: Daniele Nicolodi <daniele@grinta.net>
beancount.el: Add simple completion-at-point test
---
beancount-tests.el | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/beancount-tests.el b/beancount-tests.el
index 25eed88cab..c586a1fd65 100644
--- a/beancount-tests.el
+++ b/beancount-tests.el
@@ -145,3 +145,28 @@ known option nmaes."
(while (re-search-forward "^option\\s-+\"\\([a-z_]*\\)\"" nil t)
(setq options (cons (match-string-no-properties 1) options))))
(should (equal (sort options #'string<) beancount-option-names))))
+
+(ert-deftest beancount/completion-001 ()
+ :tags '(completion regress)
+ (with-temp-buffer
+ (insert "
+2019-01-01 * \"Example\"
+ Expenses:Test 1.00 USD
+ Assets:Checking
+
+2019-01-01 * \"Example\"
+ Expenses:T
+")
+ (beancount-mode)
+ (previous-line)
+ (move-end-of-line 1)
+ (completion-at-point)
+ (should (equal (buffer-string) "
+2019-01-01 * \"Example\"
+ Expenses:Test 1.00 USD
+ Assets:Checking
+
+2019-01-01 * \"Example\"
+ Expenses:Test
+"))
+ (should (equal beancount-accounts '("Assets:Checking" "Expenses:Test")))))
- [nongnu] elpa/beancount 6e104dcaf7 024/103: beancount.el: Revamp fontification, (continued)
- [nongnu] elpa/beancount 6e104dcaf7 024/103: beancount.el: Revamp fontification, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8de6790f46 029/103: beancount.el: Add support to highlight transaction at point, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 008d1bc599 046/103: Added missing binding for outline more to go up a heading level., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount ca4babba94 057/103: Merged in imenu-support (pull request #132), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 53a3f8e22d 068/103: Fix typo and make code a bit more idiomatic., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount dd024c867b 080/103: Added support for cost over regions, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 16c1b346f3 075/103: Fix thing-at-point tests, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount e98047d715 079/103: Tweak Makefile, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 57e2700315 031/103: beancount.el: Fix beancount-use-ido defcustum, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount c5e02d4534 034/103: beancount.el: Correct option names list, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount b6e34fcb49 035/103: beancount.el: Add simple completion-at-point test,
ELPA Syncer <=
- [nongnu] elpa/beancount 695104d47e 041/103: beancount.el: Fix beancount-insert-account, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 4cae6eebb8 043/103: beancount.el: Make beancount-number-regexp more strict, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount aec114642d 044/103: Automated merge with ssh://bitbucket.org/blais/beancount, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 0062cc9635 053/103: beancount.el: Remove an useless defvar, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount fda1819c5e 062/103: Update COPYING to GPLv3, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 2f743e6269 090/103: Derive from prog-mode instead than from fundamental-mode, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount ea8257881b 084/103: Fix amount alignment on tab key press, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount dfd402ef79 101/103: Autocomplete the second account in a pad directive, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount d9ac93fc28 099/103: Enable easy access to old-style keybindings, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8496f49748 016/103: Fixed #302: Fixed second bug with font-locking for account names (starting with digit)., ELPA Syncer, 2024/04/29