|
// retoor <retoor@molodetz.nl>
|
|
|
|
System.print("Hello World".lower) // expect: hello world
|
|
System.print("HELLO".lower) // expect: hello
|
|
System.print("hello".lower) // expect: hello
|
|
System.print("".lower) // expect:
|
|
System.print("123!@#".lower) // expect: 123!@#
|
|
|
|
System.print("Hello World".upper) // expect: HELLO WORLD
|
|
System.print("hello".upper) // expect: HELLO
|
|
System.print("HELLO".upper) // expect: HELLO
|
|
System.print("".upper) // expect:
|
|
System.print("123!@#".upper) // expect: 123!@#
|
|
|
|
System.print("hello world".capitalize) // expect: Hello world
|
|
System.print("HELLO".capitalize) // expect: Hello
|
|
System.print("h".capitalize) // expect: H
|
|
System.print("".capitalize) // expect:
|
|
System.print("already Capitalized".capitalize) // expect: Already capitalized
|
|
|
|
System.print("hello world".title) // expect: Hello World
|
|
System.print("HELLO WORLD".title) // expect: Hello World
|
|
System.print("hello".title) // expect: Hello
|
|
System.print("".title) // expect:
|
|
System.print("multi\tword\ntest".title) // expect: Multi Word
|
|
// expect: Test
|
|
|
|
System.print("Hello World".swapCase) // expect: hELLO wORLD
|
|
System.print("hello".swapCase) // expect: HELLO
|
|
System.print("HELLO".swapCase) // expect: hello
|
|
System.print("".swapCase) // expect:
|
|
System.print("123".swapCase) // expect: 123
|