package iv_properties

import org.junit.Assert.assertEquals
import org.junit.Test

class _32_Properties {
    @Test fun testPropertyWithCounter() {
        val q = PropertyExample()
        q.propertyWithCounter = 14
        q.propertyWithCounter = 21
        q.propertyWithCounter = 32
        assertEquals("The property q.changeCounter should contain the number of assignments to q.propertyWithCounter:",
                3, q.counter)
        // Here we have to use !! due to false smart cast impossible
        assertEquals("The property q.propertyWithCounter should be set:", 32, q.propertyWithCounter!!)
    }

}
package iv_properties

import org.junit.Assert.assertEquals
import org.junit.Test

class _32_Properties {
    @Test fun testPropertyWithCounter() {
        val q = PropertyExample()
        q.propertyWithCounter = 14
        q.propertyWithCounter = 21
        q.propertyWithCounter = 32
        assertEquals("The property q.counter should contain the number of assignments to q.propertyWithCounter:",
                3, q.counter)
        // Here we have to use !! due to false smart cast impossible
        assertEquals("The property q.propertyWithCounter should be set:", 32, q.propertyWithCounter!!)
    }

}
Update unit test error message according to correct name of property `counter`.
Update unit test error message according to correct name of property `counter`.

hughandrewarch/kotlin-koans,enchf/kotlin-koans,TheCoinTosser/Kotlin-Koans---Solutions,JetBrains/workshop-jb,Kotlin/kotlin-koans,Kotlin/kotlin-koans,hughandrewarch/kotlin-koans,Riccorl/kotlin-koans,Riccorl/kotlin-koans,Carighan/kotlin-koans,trmollet/tuto_kotlin,Carighan/kotlin-koans,zyallday/kotlin-koans,wickedwukong/kotlin-koans,JetBrains/workshop-jb,trmollet/tuto_kotlin,wickedwukong/kotlin-koans,zyallday/kotlin-koans,TheCoinTosser/Kotlin-Koans---Solutions,enchf/kotlin-koans