Migrate stdlib, tests and samples to new case conversion api
This commit is contained in:
@@ -290,6 +290,7 @@ class StringTest {
|
||||
|
||||
@Test fun capitalize() {
|
||||
fun testCapitalize(expected: String, string: String) {
|
||||
@Suppress("DEPRECATION")
|
||||
assertEquals(expected, string.capitalize())
|
||||
assertEquals(expected, string.replaceFirstChar { it.uppercase() })
|
||||
}
|
||||
@@ -301,6 +302,7 @@ class StringTest {
|
||||
|
||||
@Test fun decapitalize() {
|
||||
fun testDecapitalize(expected: String, string: String) {
|
||||
@Suppress("DEPRECATION")
|
||||
assertEquals(expected, string.decapitalize())
|
||||
assertEquals(expected, string.replaceFirstChar { it.lowercase() })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user