[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 15d2214 174/459: Clean up loading of dev-pa
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 15d2214 174/459: Clean up loading of dev-packages. |
Date: |
Sun, 22 Aug 2021 13:59:21 -0400 (EDT) |
branch: externals/csharp-mode
commit 15d221459ca558c5159ea487d679faf0530f353e
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Clean up loading of dev-packages.
---
csharp-mode-tests.el | 47 ++++++++---------------------------------------
1 file changed, 8 insertions(+), 39 deletions(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index d088c43..094b364 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -4,46 +4,18 @@
(require 'cl)
(require 'package)
-;;; test-helper functions
-
-(defun move-to-line-after (text)
- (search-forward text)
- (move-beginning-of-line 1)
- (forward-line 1))
-
-(defun get-current-line-contents ()
- (let* ((start)
- (end))
- (move-beginning-of-line 1)
- (setq start (point))
- (move-end-of-line 1)
- (setq end (point))
- (buffer-substring start end)))
-
;; development only packages, not declared as a package-dependency
-(setq csharp-test-packages '(assess))
-
-;; ensure development packages are installed.
-(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
+(dolist (p '(assess))
+ (when (not (package-installed-p p))
+ (package-refresh-contents)
+ (package-install p)))
-(defun csharp-test-packages-installed-p ()
- "Return nil if there are packages that are not installed."
- (loop for p in csharp-test-packages
- when (not (package-installed-p p)) do (return nil)
- finally (return t)))
+;; load dev packages
+(require 'assess)
-(defun csharp-test-packages-install-packages ()
- "Install missing packages."
- (unless (csharp-test-packages-installed-p)
- ;; Referesh package lists
- (package-refresh-contents)
- ;; Install missing
- (dolist (p csharp-test-packages)
- (when (not (package-installed-p p))
- (ignore-errors
- (package-install p))))))
-(csharp-test-packages-install-packages)
+;;; test-helper functions
;;; actual tests
@@ -59,7 +31,6 @@
(ert-deftest fontification-of-literals-detects-end-of-strings ()
;; this replaces the manual test of fontification-test.cs, but file has been
;; kept around to assist manual testing/verification.
- (require 'assess)
(should (assess-face-at=
"string Literal = @\"with trailing slash\\\";\n public Type2
Reference = null;"
'csharp-mode
@@ -71,7 +42,6 @@
;; this replaces the manual test of
;; test-files/fontification-test-compiler-directives.cs, but file
;; has been kept around to assist manual testing/verification.
- (require 'assess)
(should (assess-face-at=
"#region test\nx = true;"
'csharp-mode
@@ -95,7 +65,6 @@
;; this replaces the manual test of
;; test-files/fontification-test-compiler-directives-with-comments.cs, but
file
;; has been kept around to assist manual testing/verification.
- (require 'assess)
(let* ((test-string "#region case 1\n\n//this is a comment\n#region case2"))
(should (assess-face-at=
test-string
- [elpa] externals/csharp-mode 2ddd3c2 142/459: Merge pull request #62 from shoover/fontification-hang, (continued)
- [elpa] externals/csharp-mode 2ddd3c2 142/459: Merge pull request #62 from shoover/fontification-hang, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b11fcda 147/459: Imenu: Add support for interface-prefixed methods., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bc3bd2a 155/459: Fix devenv.com output-parsing, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9743156 158/459: Test-case for fontification error, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 57b2353 161/459: Bump version since we're working on vNext, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 682e394 162/459: Address issue with cc-mode in Emacs git master., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a631944 165/459: Make check-defuns a make-target., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ce2ff93 168/459: Make fontification-test assess-based., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7fa38d2 170/459: Extend syntax propertize function for vliterals, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode bd201c2 171/459: Remove now unused code, move log functions to top, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 15d2214 174/459: Clean up loading of dev-packages.,
ELPA Syncer <=
- [elpa] externals/csharp-mode adb7928 175/459: New test-macros for assess., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e2c9f85 181/459: New imenu-implementation for csharp-mode., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7943738 182/459: Add volatile keyword, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b4b9d61 183/459: Add volatile to imenu, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9a1ddba 185/459: Merge branch 'jtbm37/master', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a8def67 186/459: Add missing test-file. Fix build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b609f42 187/459: New imenu test-file for method-indexing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b448614 190/459: Fix fontification of methods found in test-file., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4a396e3 189/459: Add tests for imenu method-indexing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 9c42dac 193/459: Move all defcustoms to the top., ELPA Syncer, 2021/08/22