[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/beancount 77027e2cf8 037/103: beancount.el: Add outline-mi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/beancount 77027e2cf8 037/103: beancount.el: Add outline-minor-mode integration tests |
Date: |
Mon, 29 Apr 2024 15:59:44 -0400 (EDT) |
branch: elpa/beancount
commit 77027e2cf8b42737835ab6d1d875a26b42341b89
Author: Daniele Nicolodi <daniele@grinta.net>
Commit: Daniele Nicolodi <daniele@grinta.net>
beancount.el: Add outline-minor-mode integration tests
---
beancount-tests.el | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/beancount-tests.el b/beancount-tests.el
index 7624a6300f..6bdd2edea3 100644
--- a/beancount-tests.el
+++ b/beancount-tests.el
@@ -170,3 +170,49 @@ known option nmaes."
Expenses:Test
"))
(should (equal beancount-accounts '("Assets:Checking" "Expenses:Test")))))
+
+(ert-deftest beancount/outline-001 ()
+ :tags '(outline)
+ (with-temp-buffer
+ (insert "
+* A
+** B
+*** C
+")
+ (beancount-mode)
+ (outline-minor-mode)
+ (forward-line -1)
+ (should (looking-at beancount-outline-regexp))
+ (should (equal (beancount-outline-level) 3))))
+
+(ert-deftest beancount/outline-002 ()
+ :tags '(outline)
+ (with-temp-buffer
+ (insert "
+;;; A
+;;;; B
+;;;;; C
+")
+ (beancount-mode)
+ (outline-minor-mode)
+ (forward-line -1)
+ (should (looking-at beancount-outline-regexp))
+ (should (equal (beancount-outline-level) 3))))
+
+(ert-deftest beancount/outline-fontify-001 ()
+ :tags '(outline)
+ (let ((fontified
+ (with-temp-buffer
+ (insert "
+* A
+** B
+*** C
+")
+ (beancount-mode)
+ (outline-minor-mode)
+ (font-lock-ensure)
+ (buffer-string))))
+ (should (equal (beancount-test-face-groups fontified)
+ '("* A" org-level-1
+ "** B" org-level-2
+ "*** C" org-level-3)))))
- [nongnu] elpa/beancount 194a9e9697 061/103: Added license., (continued)
- [nongnu] elpa/beancount 194a9e9697 061/103: Added license., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 90c3992269 076/103: Fix imenu tests, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 5be04a37d6 081/103: (Merge branch 'main' into cost), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 7b8f02ebcd 077/103: Cleanup faces definitions, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount dbafe6a73d 082/103: Shift beancount-insert-date by DAYS from today using prefix args, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount e32e44e8d2 092/103: Added personal binding to aggregate balance binding., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 73b2afcff6 087/103: (Merge remote-tracking branch 'github/main'), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 42edc5bf07 083/103: Align amounts in balance directives in the same way as in postings, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 41039a8d7b 085/103: Added support for accounts in thing-at-point., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 3725c02702 103/103: Update account name regex to allow starting with a number, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 77027e2cf8 037/103: beancount.el: Add outline-minor-mode integration tests,
ELPA Syncer <=
- [nongnu] elpa/beancount 83cd9330e3 050/103: beancount.el: Include underscore and dash to metadata regexp., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8091f35803 056/103: beancount.el: Add beancount-electric-currency, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 449212459e 072/103: fix parenthses mismatch on beancount outline 1-8, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount d560451fda 071/103: Use beancount-level-N faces instead of org-level-N, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount bde2d6c499 089/103: Add function to jump to previous transaction, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount c77e340ed2 003/103: ., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount e8a5bce28c 086/103: Fix typo in beancount-number-alignment-column docstring, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 72956f0f0e 097/103: Change sign of prefix argument for `beancount-insert-date`, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 7a0ef01d1f 066/103: Add command to open file with fava, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount aab2a23f15 074/103: Fix headlines fontification test, ELPA Syncer, 2024/04/29