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 76eab3b246
commit b68de847e6

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