[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 3472e208d7 03/13: Remove duplicate string-search
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 3472e208d7 03/13: Remove duplicate string-search test block |
Date: |
Sun, 13 Mar 2022 19:57:32 -0400 (EDT) |
branch: externals/compat
commit 3472e208d7b0577d76e6458a02c0862dd5438cf9
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Remove duplicate string-search test block
---
compat-tests.el | 115 --------------------------------------------------------
1 file changed, 115 deletions(-)
diff --git a/compat-tests.el b/compat-tests.el
index f6d9681e3c..42e1f9197a 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -120,121 +120,6 @@ being compared against."
-(compat-deftest string-search
- ;; Find needle at the beginning of a haystack:
- (ought 0 "a" "abb")
- ;; Find needle at the begining of a haystack, with more potential
- ;; needles that could be found:
- (ought 0 "a" "abba")
- ;; Find needle with more than one charachter at the beginning of
- ;; a line:
- (ought 0 "aa" "aabbb")
- ;; Find a needle midstring:
- (ought 1 "a" "bab")
- ;; Find a needle at the end:
- (ought 2 "a" "bba")
- ;; Find a longer needle midstring:
- (ought 1 "aa" "baab")
- ;; Find a longer needle at the end:
- (ought 2 "aa" "bbaa")
- ;; Find a case-sensitive needle:
- (ought 2 "a" "AAa")
- ;; Find another case-sensitive needle:
- (ought 2 "aa" "AAaa")
- ;; Test regular expression quoting (1):
- (ought 5 "." "abbbb.b")
- ;; Test regular expression quoting (2):
- (ought 5 ".*" "abbbb.*b")
- ;; Attempt to find non-existent needle:
- (ought nil "a" "bbb")
- ;; Attempt to find non-existent needle that has the form of a
- ;; regular expression:
- (ought nil "." "bbb")
- ;; Handle empty string as needle:
- (ought 0 "" "abc")
- ;; Handle empty string as haystack:
- (ought nil "a" "")
- ;; Handle empty string as needle and haystack:
- (ought 0 "" "")
- ;; Handle START argument:
- (ought 3 "a" "abba" 1)
- ;; Additional test copied from:
- (ought 6 "zot" "foobarzot")
- (ought 0 "foo" "foobarzot")
- (ought nil "fooz" "foobarzot")
- (ought nil "zot" "foobarzo")
- (ought 0 "ab" "ab")
- (ought nil "ab\0" "ab")
- (ought 4 "ab" "abababab" 3)
- (ought nil "ab" "ababac" 3)
- (ought nil "aaa" "aa")
- ;; The `make-string' calls with three arguments have been replaced
- ;; here with the result of their evaluation, to avoid issues with
- ;; older versions of Emacs that only support two arguments.
- (ought 5
- (make-string 2 130)
- ;; Per (concat "helló" (make-string 5 130 t) "bár")
- "hellóbár")
- (ought 5
- (make-string 2 127)
- ;; Per (concat "helló" (make-string 5 127 t) "bár")
- "hellóbár")
- (ought 1 "\377" "a\377ø")
- (ought 1 "\377" "a\377a")
- (ought nil (make-string 1 255) "a\377ø")
- (ought nil (make-string 1 255) "a\377a")
- (ought 3 "fóo" "zotfóo")
- (ought nil "\303" "aøb")
- (ought nil "\270" "aøb")
- (ought nil "ø" "\303\270")
- (ought nil "ø" (make-string 32 ?a))
- (ought nil "ø" (string-to-multibyte (make-string 32 ?a)))
- (ought 14 "o" (string-to-multibyte
- (apply #'string (number-sequence ?a ?z))))
- (ought 2 "a\U00010f98z" "a\U00010f98a\U00010f98z")
- (expect (args-out-of-range "abc" -1) "a" "abc" -1)
- (expect (args-out-of-range "abc" 4) "a" "abc" 4)
- (expect (args-out-of-range "abc" 100000000000)
- "a" "abc" 100000000000)
- (ought nil "a" "aaa" 3)
- (ought nil "aa" "aa" 1)
- (ought nil "\0" "")
- (ought 0 "" "")
- (expect (args-out-of-range "" 1) "" "" 1)
- (ought 0 "" "abc")
- (ought 2 "" "abc" 2)
- (ought 3 "" "abc" 3)
- (expect (args-out-of-range "abc" 4) "" "abc" 4)
- (expect (args-out-of-range "abc" -1) "" "abc" -1)
- (ought nil "ø" "foo\303\270")
- (ought nil "\303\270" "ø")
- (ought nil "\370" "ø")
- (ought nil (string-to-multibyte "\370") "ø")
- (ought nil "ø" "\370")
- (ought nil "ø" (string-to-multibyte "\370"))
- (ought nil "\303\270" "\370")
- (ought nil (string-to-multibyte "\303\270") "\370")
- (ought nil "\303\270" (string-to-multibyte "\370"))
- (ought nil
- (string-to-multibyte "\303\270")
- (string-to-multibyte "\370"))
- (ought nil "\370" "\303\270")
- (ought nil (string-to-multibyte "\370") "\303\270")
- (ought nil "\370" (string-to-multibyte "\303\270"))
- (ought nil
- (string-to-multibyte "\370")
- (string-to-multibyte "\303\270"))
- (ought 3 "\303\270" "foo\303\270")
- (when (version<= "27" emacs-version)
- ;; FIXME The commit a1f76adfb03c23bb4242928e8efe6193c301f0c1 in
- ;; emacs.git fixes the behaviour of regular expressions matching
- ;; raw bytes. The compatibility functions should updated to
- ;; backport this behaviour.
- (ought 2 (string-to-multibyte "\377") "ab\377c")
- (ought 2
- (string-to-multibyte "o\303\270")
- "foo\303\270")))
-
(compat-deftest string-search
;; Find needle at the beginning of a haystack:
(ought 0 "a" "abb")
- [elpa] externals/compat updated (c99569a419 -> 6b21a08666), ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3472e208d7 03/13: Remove duplicate string-search test block,
ELPA Syncer <=
- [elpa] externals/compat 7aee4b40ef 02/13: Remove duplicate ert-set-test in compat--expect, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 21c70607aa 01/13: Have minimal definitions expand to a defalias if possible, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 327cb6b6e6 04/13: Allow specifying a condition to test defaliasing prefix functions, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 12c750656c 06/13: Move assoc-delete-all to emacs-27, ELPA Syncer, 2022/03/13
- [elpa] externals/compat abb32f1b9d 05/13: Add :cond to assoc definition, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 317b88abdc 08/13: Fix args-out-of-range signal upper-bound edge case, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3a6990e954 09/13: Rename named-let name in tests to avoid byte compiler warnings, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3b88489c8c 07/13: Exclude "MANUAL" from ELPA package, ELPA Syncer, 2022/03/13
- [elpa] externals/compat e5f4a546ae 10/13: Fix duplicate test name issues, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3fa2a7477f 11/13: Avoid failing ":cond"-check if assoc-delete-all is not defined, ELPA Syncer, 2022/03/13