KTLN-149: Get rid of the invalid buildString example (#9373)

This commit is contained in:
kwoyke 2020-05-27 17:33:29 +02:00 committed by GitHub
parent fbabf0ed94
commit 75b7419545
1 changed files with 2 additions and 2 deletions

View File

@ -19,9 +19,9 @@ class StringComparisonUnitTest {
fun `compare using referential equals operator`() {
val first = "kotlin"
val second = "kotlin"
val copyOfFirst = buildString { "kotlin" }
val third = String("kotlin".toCharArray())
assertTrue { first === second }
assertFalse { first === copyOfFirst }
assertFalse { first === third }
}
@Test