diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/subr-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 84f3e41148d..d45f409e85b 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el | |||
| @@ -368,6 +368,13 @@ | |||
| 368 | 2))) | 368 | 2))) |
| 369 | 369 | ||
| 370 | (ert-deftest string-comparison-test () | 370 | (ert-deftest string-comparison-test () |
| 371 | (should (string-equal-ignore-case "abc" "abc")) | ||
| 372 | (should (string-equal-ignore-case "abc" "ABC")) | ||
| 373 | (should (string-equal-ignore-case "abc" "abC")) | ||
| 374 | (should-not (string-equal-ignore-case "abc" "abCD")) | ||
| 375 | (should (string-equal-ignore-case "S" "s")) | ||
| 376 | ;; not yet: (should (string-equal-ignore-case "SS" "ß")) | ||
| 377 | |||
| 371 | (should (string-lessp "abc" "acb")) | 378 | (should (string-lessp "abc" "acb")) |
| 372 | (should (string-lessp "aBc" "abc")) | 379 | (should (string-lessp "aBc" "abc")) |
| 373 | (should (string-lessp "abc" "abcd")) | 380 | (should (string-lessp "abc" "abcd")) |