aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/international/ucs-normalize-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lisp/international/ucs-normalize-tests.el b/test/lisp/international/ucs-normalize-tests.el
index c36808ad72f..2c60bd318a2 100644
--- a/test/lisp/international/ucs-normalize-tests.el
+++ b/test/lisp/international/ucs-normalize-tests.el
@@ -341,4 +341,15 @@ implementations:
341 (display-buffer (current-buffer))) 341 (display-buffer (current-buffer)))
342 (message "No changes to failing lines needed")))) 342 (message "No changes to failing lines needed"))))
343 343
344(ert-deftest ucs-normalize-save-match-data ()
345 "Verify that match data isn't clobbered (bug#41445)"
346 (string-match (rx (+ digit)) "a47b")
347 (should (equal (match-data t) '(1 3)))
348 (should (equal
349 (decode-coding-string
350 (encode-coding-string "Käsesoßenrührlöffel" 'utf-8-hfs)
351 'utf-8-hfs)
352 "Käsesoßenrührlöffel"))
353 (should (equal (match-data t) '(1 3))))
354
344;;; ucs-normalize-tests.el ends here 355;;; ucs-normalize-tests.el ends here