aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/casefiddle-tests.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/src/casefiddle-tests.el b/test/src/casefiddle-tests.el
index e7f4348b0c6..12984d898b9 100644
--- a/test/src/casefiddle-tests.el
+++ b/test/src/casefiddle-tests.el
@@ -294,4 +294,16 @@
294 ;;(should (string-equal (capitalize "indIá") "İndıa")) 294 ;;(should (string-equal (capitalize "indIá") "İndıa"))
295 )) 295 ))
296 296
297(defun casefiddle-tests--check-syms (init with-words with-symbols)
298 (let ((case-symbols-as-words nil))
299 (should (string-equal (upcase-initials init) with-words)))
300 (let ((case-symbols-as-words t))
301 (should (string-equal (upcase-initials init) with-symbols))))
302
303(ert-deftest casefiddle-case-symbols-as-words ()
304 (casefiddle-tests--check-syms "Aa_bb Cc_dd" "Aa_Bb Cc_Dd" "Aa_bb Cc_dd")
305 (casefiddle-tests--check-syms "Aa_bb cc_DD" "Aa_Bb Cc_DD" "Aa_bb Cc_DD")
306 (casefiddle-tests--check-syms "aa_bb cc_dd" "Aa_Bb Cc_Dd" "Aa_bb Cc_dd")
307 (casefiddle-tests--check-syms "Aa_Bb Cc_Dd" "Aa_Bb Cc_Dd" "Aa_Bb Cc_Dd"))
308
297;;; casefiddle-tests.el ends here 309;;; casefiddle-tests.el ends here