emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c7ac766 1/2: Suppress relint diagnostics in rx-tests.el


From: Mattias Engdegård
Subject: master c7ac766 1/2: Suppress relint diagnostics in rx-tests.el
Date: Sun, 5 Apr 2020 09:38:17 -0400 (EDT)

branch: master
commit c7ac76603f291d432586abd2eeb75e1ca6e54863
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>

    Suppress relint diagnostics in rx-tests.el
    
    * test/lisp/emacs-lisp/rx-tests.el (rx-char-any, rx-any):
    Suppress relint complaints; these regexps are intentionally bad.
---
 test/lisp/emacs-lisp/rx-tests.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/lisp/emacs-lisp/rx-tests.el b/test/lisp/emacs-lisp/rx-tests.el
index 0fece40..0e6f278 100644
--- a/test/lisp/emacs-lisp/rx-tests.el
+++ b/test/lisp/emacs-lisp/rx-tests.el
@@ -63,6 +63,7 @@
 (ert-deftest rx-char-any ()
   "Test character alternatives with `]' and `-' (Bug#25123)."
   (should (equal
+           ;; relint suppression: Range .<-]. overlaps previous .]-{
            (rx string-start (1+ (char (?\] . ?\{) (?< . ?\]) (?- . ?:)))
                string-end)
            "\\`[.-:<-{-]+\\'")))
@@ -127,6 +128,10 @@
                  "[[:lower:][:upper:]-][^[:lower:][:upper:]-]"))
   (should (equal (rx (any "]" lower upper) (not (any "]" lower upper)))
                  "[][:lower:][:upper:]][^][:lower:][:upper:]]"))
+  ;; relint suppression: Duplicated character .-.
+  ;; relint suppression: Single-character range .f-f
+  ;; relint suppression: Range .--/. overlaps previous .-
+  ;; relint suppression: Range .\*--. overlaps previous .--/
   (should (equal (rx (any "-a" "c-" "f-f" "--/*--"))
                  "[*-/acf]"))
   (should (equal (rx (any "]-a" ?-) (not (any "]-a" ?-)))
@@ -140,6 +145,7 @@
                  "\\`a\\`[^z-a]"))
   (should (equal (rx (any "") (not (any "")))
                  "\\`a\\`[^z-a]"))
+  ;; relint suppression: Duplicated class .space.
   (should (equal (rx (any space ?a digit space))
                  "[a[:space:][:digit:]]"))
   (should (equal (rx (not "\n") (not ?\n) (not (any "\n")) (not-char ?\n)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]