[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mmm-mode c45140dc16 16/17: Add test to verify mmm-versi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mmm-mode c45140dc16 16/17: Add test to verify mmm-version, variable and function |
Date: |
Wed, 21 Feb 2024 09:58:28 -0500 (EST) |
branch: externals/mmm-mode
commit c45140dc16771ce59a49ac2b291ceae563b846d0
Author: Ola Nilsson <ola.nilsson@gmail.com>
Commit: Ola Nilsson <ola.nilsson@gmail.com>
Add test to verify mmm-version, variable and function
---
Makefile | 2 +-
tests/variables.el | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 65b478e734..1813a2e29e 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ ELFILES = mmm-auto.el mmm-class.el mmm-cmds.el mmm-compat.el
mmm-cweb.el \
mmm-noweb.el mmm-region.el mmm-rpm.el mmm-sample.el mmm-univ.el \
mmm-utils.el mmm-vars.el
ELCFILES = $(ELFILES:.el=.elc)
-TESTS = highlighting.el html-erb.el
+TESTS = highlighting.el html-erb.el variables.el
all: mmm.info $(ELCFILES)
diff --git a/tests/variables.el b/tests/variables.el
new file mode 100644
index 0000000000..d33886f9d4
--- /dev/null
+++ b/tests/variables.el
@@ -0,0 +1,39 @@
+;;; variables.el --- Tests for mmm-mode variables -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2024 Free Software Foundation, Inc.
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Tests for the mmm-vars file.
+
+;;; Code:
+
+(require 'mmm-vars)
+(require 'mmm-mode)
+(require 'lisp-mnt)
+
+(ert-deftest verify-mmm-version ()
+ "Verify variable `mmm-version' and function `mmm-version'.
+Both should match the Version header in mmm-mode.el."
+ ;; Find the correct path to the mmm-mode.el file (which contain the
+ ;; `Version:' header) by finding using the name of the file where
+ ;; `mmm-mode' is defined.
+ (let ((lmver (lm-version (find-lisp-object-file-name 'mmm-mode nil)))
+ (inhibit-message t)) ; don't print (mmm-version)
+ (should (string= lmver mmm-version))
+ (should (string-match (regexp-quote lmver) (mmm-version)))))
+
+;;; variables.el ends here
- [elpa] externals/mmm-mode updated (96906747e8 -> fec2640727), ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 649724ef14 13/17: Fix some docstrings in mmm-noweb.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode b4d7de6d5f 11/17: Correct customization type of mmm-mode-prefix-key, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode bf746235ba 10/17: Improve docstrings in mmm-vars.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode dddd6164bc 12/17: Fix some docstrings in mmm-region.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 156a75295e 14/17: Small doc changes to mmm-defaults, -mason and -myghty, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode a5e71976ab 15/17: Enable lexical-binding in all files, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode fec2640727 17/17: Merge pull request #139 from snogge/lexical, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode ce6320ceba 04/17: Fix checkdoc error in mmm-cmds.el docstrings, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode c45140dc16 16/17: Add test to verify mmm-version, variable and function,
ELPA Syncer <=
- [elpa] externals/mmm-mode 119ec9d0ef 03/17: Fix most docstrings in mmm-class.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode f357670a64 02/17: Add Emacs 29.1 and 29.2 to github CI testing, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 8d0043b6df 07/17: Rewrite mmm-save-keyword(s) to work with lexical-binding t, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 355ab67251 09/17: Use line-beginning-position in mmm-erb-indent-line, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 42a5333b0a 08/17: Clean up comments and docstrings in mmm-mode.el, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 9b6823c89a 01/17: Update github workflow to use actions/checkout@v4, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode e58756254c 06/17: Don't shadow case-fold-search with mmm-ify argument, ELPA Syncer, 2024/02/21
- [elpa] externals/mmm-mode 920fd5dff2 05/17: Rewrite mmm-get-block, ELPA Syncer, 2024/02/21