FamilySearch Wiki:Extension tests: Difference between revisions

Line 472: Line 472:
== StringFunctionsEscaped ==
== StringFunctionsEscaped ==


; Test
=== Test 1: Uppercase Function ===
; **Test:**
{{#sfe_uppercase: hello world}}
{{#sfe_uppercase: hello world}}
; Expected
; **Expected:**
HELLO WORLD
HELLO WORLD
; **Description:**
Verifies that the `sfe_uppercase` function correctly transforms a lowercase string to uppercase.


; Test
=== Test 2: Lowercase Function ===
; **Test:**
{{#sfe_lowercase: HELLO WORLD}}
{{#sfe_lowercase: HELLO WORLD}}
; Expected
; **Expected:**
hello world
hello world
; **Description:**
Ensures that the `sfe_lowercase` function converts an uppercase string to lowercase.


; Test
=== Test 3: Titlecase Function ===
; **Test:**
{{#sfe_titlecase: hello world}}
{{#sfe_titlecase: hello world}}
; Expected
; **Expected:**
Hello World
Hello World
; **Description:**
Checks that the `sfe_titlecase` function capitalizes the first letter of each word.
[[Category:Tests]]


== SpamBlacklist ==
== SpamBlacklist ==
926

edits