:unittest.toLower

Test cases for the :toLower function

Description: call:unittest.toLower
Dependencies: :toLower, :Format
Script:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
:unittest.toLower
:$created 20080219 :$changed 20091130
:$source https://www.dostips.com
for %%C in (
        "CONVERT this to lower case"
        "123Conver tHIs to Lower case"
        "Convert this TO lower case123"
        "CONVERT THIS TO LOWER CASE"
        "convert this to lower case"
        ""
    ) do (
    set "s=%%~C"
    call:toLower s
    call:Format "[35] [35]." "'%%~C'" "'%%s%%'"
)
EXIT /b
Script Output:
 DOS Script Output
---- :unittest.toLower - output
'CONVERT this to lower case'        'convert this to lower case'       .
'123Conver tHIs to Lower case'      '123conver this to lower case'     .
'Convert this TO lower case123'     'convert this to lower case123'    .
'CONVERT THIS TO LOWER CASE'        'convert this to lower case'       .
'convert this to lower case'        'convert this to lower case'       .
''                                  ''                                 .
----