想要断言列表中的值不重复

Want to assert that the values are not duplicated in the list

我正在使用空手道断言这样的响应。

"Ids": ["123456","123456","123457"]

现在我想断言我的列表不包含重复值(如果有重复值,它应该无法通过测试用例),是否有空手道支持的内置函数或者是有 JS 能搞定吗?

给你:https://github.com/karatelabs/karate#karate-distinct

* def response = ["123456","123456","123457"]
* match response == karate.distinct(response)