KTLN-149: Get rid of the invalid buildString example (#9373)
This commit is contained in:
parent
fbabf0ed94
commit
75b7419545
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user