[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 3f3f2e44d5 43/84: Split compat-insert-into-buffe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 3f3f2e44d5 43/84: Split compat-insert-into-buffer into multiple tests |
Date: |
Tue, 3 Jan 2023 08:57:34 -0500 (EST) |
branch: externals/compat
commit 3f3f2e44d50f7ea00f06be8e9d4929735b6fde77
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Split compat-insert-into-buffer into multiple tests
---
compat-tests.el | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/compat-tests.el b/compat-tests.el
index 9e1fefab71..c51a2e8041 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -355,9 +355,8 @@ being compared against."
(ought t 1) ;single argument
(ought t 1 2 3 4)) ;multiple arguments
-(ert-deftest compat-insert-into-buffer ()
- "Check if `insert-into-buffer' was implemented correctly."
- ;; Without optional compat--arguments
+(ert-deftest compat-insert-into-buffer-1 ()
+ "Check if `insert-into-buffer' can handle no optional argument."
(with-temp-buffer
(let ((other (current-buffer)))
(insert "abc")
@@ -372,8 +371,10 @@ being compared against."
(with-temp-buffer
(insert "def")
(insert-into-buffer other))
- (should (string= (buffer-string) "abcdef")))))
- ;; With one optional argument
+ (should (string= (buffer-string) "abcdef"))))))
+
+(ert-deftest compat-insert-into-buffer-2 ()
+ "Check if `insert-into-buffer' handles one optional argument."
(with-temp-buffer
(let ((other (current-buffer)))
(insert "abc")
@@ -388,8 +389,10 @@ being compared against."
(with-temp-buffer
(insert "def")
(insert-into-buffer other 2))
- (should (string= (buffer-string) "abcef")))))
- ;; With two optional arguments
+ (should (string= (buffer-string) "abcef"))))))
+
+(ert-deftest compat-insert-into-buffer-3 ()
+ "Check if `insert-into-buffer' handles two optional arguments."
(with-temp-buffer
(let ((other (current-buffer)))
(insert "abc")
- [elpa] externals/compat 87da1d984d 11/84: Begin documenting Emacs 29 support, (continued)
- [elpa] externals/compat 87da1d984d 11/84: Begin documenting Emacs 29 support, ELPA Syncer, 2023/01/03
- [elpa] externals/compat c81333a6b0 30/84: Merge branch 'master' into emacs-29.1, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 2ee63f46b2 07/84: Make compat-font-lock dependency on compat-macs explicit, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 22b2634ada 06/84: Compile compat-macs before anything else, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 2e206a8304 21/84: Add prefixed plist-get from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat e13ca90cd7 12/84: Rewrite legacy compat-test definitions, ELPA Syncer, 2023/01/03
- [elpa] externals/compat e370f9b7e7 25/84: Add match-buffers from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 4710da5fa7 28/84: Add file-parent-directory from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat bb86f3aa3b 37/84: Simplify compat--generate-testable, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 282f2dc6a7 41/84: Call install-fn in compat--generate-testable, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 3f3f2e44d5 43/84: Split compat-insert-into-buffer into multiple tests,
ELPA Syncer <=
- [elpa] externals/compat 933d6fdf80 24/84: Add buffer-match-p from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 8d17ffdd88 29/84: Add file-has-changed-p from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 252d33e897 31/84: Fix incompatible function calls in compat-29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9e0eb5b72f 33/84: Add compat-declare-version to compat-29.el, ELPA Syncer, 2023/01/03
- [elpa] externals/compat fdae099b00 34/84: Move if-let and related function from subr-x to subr, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 6ac6ed2a99 36/84: Use make-symbol instead of gensym in function-alias-p tests, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ef5246cf55 38/84: Fix issues related to 'expect' tests, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 0a84a7c219 48/84: Add add-display-text-property from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat e6d279af18 14/84: Extend byte-compile-docstring-max-column to 100, ELPA Syncer, 2023/01/03
- [elpa] externals/compat c177ff5e83 17/84: Reuse ntake in take definition, ELPA Syncer, 2023/01/03