diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/regex-emacs-tests.el | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/src/regex-emacs-tests.el b/test/src/regex-emacs-tests.el index 576630aa5af..34d4067db47 100644 --- a/test/src/regex-emacs-tests.el +++ b/test/src/regex-emacs-tests.el | |||
| @@ -834,6 +834,13 @@ This evaluates the TESTS test cases from glibc." | |||
| 834 | 834 | ||
| 835 | (ert-deftest regexp-eszett () | 835 | (ert-deftest regexp-eszett () |
| 836 | "Test matching of ß and ẞ." | 836 | "Test matching of ß and ẞ." |
| 837 | ;; Sanity checks. | ||
| 838 | (should (equal (upcase "ß") "SS")) | ||
| 839 | (should (equal (downcase "ß") "ß")) | ||
| 840 | (should (equal (capitalize "ß") "Ss")) ; undeutsch... | ||
| 841 | (should (equal (upcase "ẞ") "ẞ")) | ||
| 842 | (should (equal (downcase "ẞ") "ß")) | ||
| 843 | (should (equal (capitalize "ẞ") "ẞ")) | ||
| 837 | ;; ß is a lower-case letter (Ll); ẞ is an upper-case letter (Lu). | 844 | ;; ß is a lower-case letter (Ll); ẞ is an upper-case letter (Lu). |
| 838 | (let ((case-fold-search nil)) | 845 | (let ((case-fold-search nil)) |
| 839 | (should (equal (string-match "ß" "ß") 0)) | 846 | (should (equal (string-match "ß" "ß") 0)) |
| @@ -842,8 +849,8 @@ This evaluates the TESTS test cases from glibc." | |||
| 842 | (should (equal (string-match "ẞ" "ẞ") 0)) | 849 | (should (equal (string-match "ẞ" "ẞ") 0)) |
| 843 | (should (equal (string-match "[[:alpha:]]" "ß") 0)) | 850 | (should (equal (string-match "[[:alpha:]]" "ß") 0)) |
| 844 | ;; bug#11309 | 851 | ;; bug#11309 |
| 845 | ;;(should (equal (string-match "[[:lower:]]" "ß") 0)) | 852 | (should (equal (string-match "[[:lower:]]" "ß") 0)) |
| 846 | ;;(should (equal (string-match "[[:upper:]]" "ß") nil)) | 853 | (should (equal (string-match "[[:upper:]]" "ß") nil)) |
| 847 | (should (equal (string-match "[[:alpha:]]" "ẞ") 0)) | 854 | (should (equal (string-match "[[:alpha:]]" "ẞ") 0)) |
| 848 | (should (equal (string-match "[[:lower:]]" "ẞ") nil)) | 855 | (should (equal (string-match "[[:lower:]]" "ẞ") nil)) |
| 849 | (should (equal (string-match "[[:upper:]]" "ẞ") 0))) | 856 | (should (equal (string-match "[[:upper:]]" "ẞ") 0))) |
| @@ -854,8 +861,8 @@ This evaluates the TESTS test cases from glibc." | |||
| 854 | (should (equal (string-match "ẞ" "ẞ") 0)) | 861 | (should (equal (string-match "ẞ" "ẞ") 0)) |
| 855 | (should (equal (string-match "[[:alpha:]]" "ß") 0)) | 862 | (should (equal (string-match "[[:alpha:]]" "ß") 0)) |
| 856 | ;; bug#11309 | 863 | ;; bug#11309 |
| 857 | ;;(should (equal (string-match "[[:lower:]]" "ß") 0)) | 864 | (should (equal (string-match "[[:lower:]]" "ß") 0)) |
| 858 | ;;(should (equal (string-match "[[:upper:]]" "ß") 0)) | 865 | (should (equal (string-match "[[:upper:]]" "ß") 0)) |
| 859 | (should (equal (string-match "[[:alpha:]]" "ẞ") 0)) | 866 | (should (equal (string-match "[[:alpha:]]" "ẞ") 0)) |
| 860 | (should (equal (string-match "[[:lower:]]" "ẞ") 0)) | 867 | (should (equal (string-match "[[:lower:]]" "ẞ") 0)) |
| 861 | (should (equal (string-match "[[:upper:]]" "ẞ") 0)))) | 868 | (should (equal (string-match "[[:upper:]]" "ẞ") 0)))) |