diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compat-tests.el | 8 | ||||
| -rw-r--r-- | tests/define-tests.el | 2 | ||||
| -rw-r--r-- | tests/poly-modes-tests.el | 3 | ||||
| -rw-r--r-- | tests/span-matcher-tests.el | 4 |
4 files changed, 16 insertions, 1 deletions
diff --git a/tests/compat-tests.el b/tests/compat-tests.el index c8b97da..1607efb 100644 --- a/tests/compat-tests.el +++ b/tests/compat-tests.el @@ -1,4 +1,8 @@ -(require 'poly-markdown) +;;; compat-tests.el -- Tests for Polymode -*- lexical-binding: t; -*- + +;; Copyright (C) 2022 Free Software Foundation, Inc. + +(require 'poly-markdown nil t) ;Don't fail if not installed. (define-innermode poly-test-markdown-inline-python-innermode poly-markdown-inline-code-innermode :head-matcher (cons "[^`]\\(`py \\)" 1) @@ -12,6 +16,7 @@ poly-test-markdown-inline-python-innermode)) (ert-deftest compat/lsp/lsp-text () + (skip-unless (fboundp 'poly-markdown-mode)) (let ((markdown-enable-math t)) (pm-test-run-on-file poly-test-markdown-mode "test.md" ;; python @@ -106,6 +111,7 @@ (ert-deftest compat/indent/double-poly-mode-init-preserves-original-functions () + (skip-unless (fboundp 'poly-markdown-mode)) (pm-test-run-on-file poly-test-markdown-mode "test.md" (goto-char (point-min)) (pm-switch-to-buffer) diff --git a/tests/define-tests.el b/tests/define-tests.el index 26f7278..976ab44 100644 --- a/tests/define-tests.el +++ b/tests/define-tests.el @@ -1,5 +1,7 @@ ;;; mode-init-tests.el --- Various initialization tests -*- lexical-binding: t -*- +;; Copyright (C) 2019-2022 Free Software Foundation, Inc. + (require 'polymode) (require 'polymode-test-utils) diff --git a/tests/poly-modes-tests.el b/tests/poly-modes-tests.el index 0a093e1..43e4b6f 100644 --- a/tests/poly-modes-tests.el +++ b/tests/poly-modes-tests.el @@ -1,3 +1,6 @@ +;;; poly-modes-tests.el -- Tests for Polymode -*- lexical-binding: t; -*- + +;; Copyright (C) 2022 Free Software Foundation, Inc. ;; load all tests from individual poly-xyz repositories located in the parent of ;; this repository diff --git a/tests/span-matcher-tests.el b/tests/span-matcher-tests.el index bd36d06..6557f47 100644 --- a/tests/span-matcher-tests.el +++ b/tests/span-matcher-tests.el @@ -1,3 +1,7 @@ +;;; poly-modes-tests.el -- Tests for Polymode -*- lexical-binding: t; -*- + +;; Copyright (C) 2018-2022 Free Software Foundation, Inc. + (require 'polymode-test-utils) (defvar markdown-inline-head-fun-matcher (pm-fun-matcher (cons "[^`]\\(`{?[[:alpha:]+-]+\\)[ \t]" 1))) |
