Am I missing something obvious about what’s wrong with this call?
This works:
body("details[0].validChoices", Matchers.contains("A", "B"))
But this won’t:
body("details[0].validChoices", Matchers.contains(*listOf("A", "B")))
Interestingly, this will:
body("details[0].validChoices", Matchers.contains(*arrayOf("A", "B")))
So this will too:
val planNames = Plan.values().map(Plan::name).toTypedArray()
body("details[0].validChoices", Matchers.contains(*planNames))
Why do Array and List behave differently here?