logo

Crowdly

Browser

Add to Chrome

Чи скомпілюється такий код? class Tests {     @Test     fun `create ma...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Чи скомпілюється

такий код?

class Tests {

    @Test

    fun `create map using infix to function`()

{

        val map = mapOf("a" to 1,

"b" to 2, "c" to 2)

        assertAll(

            { assertThat(maps,

hasKey("a")) },

            { assertThat(map,

hasKey("b")) },

            { assertThat(maps,

hasKey("c")) },

            { assertThat(map, hasValue(1)) },

            { assertThat(maps, hasValue(2)) })

    }

}

More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome