|
|
Line 470: |
Line 470: |
| : E=mc^2 (but much better-looking) | | : E=mc^2 (but much better-looking) |
|
| |
|
| == StringFunctionsEscaped ==
| | === Test 3: Lowercase Conversion Using `#lc` === |
| | |
| === Test 1: Uppercase Function === | |
| ; '''Test:'''
| |
| {{#sfe_uppercase: hello world}}
| |
| | |
| ; '''Expected:'''
| |
| HELLO WORLD
| |
| | |
| ; '''Description:'''
| |
| Verifies that the `sfe_uppercase` function correctly transforms a lowercase string to uppercase.
| |
| | |
| === Test 2: Lowercase Function ===
| |
| ; '''Test:''' | | ; '''Test:''' |
| {{#sfe_lowercase: HELLO WORLD}} | | {{#lc: HELLO WORLD}} |
|
| |
|
| ; '''Expected:''' | | ; '''Expected:''' |
| hello world | | hello world |
|
| |
| '''Result:'''
| |
|
| |
| ; '''Description:'''
| |
| Ensures that the `sfe_lowercase` function converts an uppercase string to lowercase.
| |
|
| |
| === Test 3: Titlecase Function ===
| |
| ; '''Test:'''
| |
| {{#sfe_titlecase: hello world}}
| |
|
| |
| ; '''Expected:'''
| |
| Hello World
| |
|
| |
|
| ; '''Description:''' | | ; '''Description:''' |
| Checks that the `sfe_titlecase` function capitalizes the first letter of each word.
| | Converts the input string to lowercase using MediaWiki's built-in `#lc` parser function. |
|
| |
|
| [[Category:Tests]] | | [[Category:Tests]] |