Skip to content

Commit 2cee219

Browse files
dzirbelevant
authored andcommitted
Fix typo in documentation for containsExactly()
Fix an apparent copy-paste error which used containsOnly instead of containsExactly, which is a bit confusing.
1 parent 588588e commit 2cee219

File tree

1 file changed

+3
-3
lines changed
  • assertk/src/commonMain/kotlin/assertk/assertions

1 file changed

+3
-3
lines changed

assertk/src/commonMain/kotlin/assertk/assertions/list.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ fun <T> Assert<List<T>>.index(index: Int): Assert<T> =
2626
* Asserts the list contains exactly the expected elements. They must be in the same order and
2727
* there must not be any extra elements.
2828
*
29-
* [1, 2] containsOnly [2, 1] fails
30-
* [1, 2, 2] containsOnly [2, 1] fails
31-
* [1, 2] containsOnly [2, 2, 1] fails
29+
* [1, 2] containsExactly [2, 1] fails
30+
* [1, 2, 2] containsExactly [2, 1] fails
31+
* [1, 2] containsExactly [2, 2, 1] fails
3232
*
3333
* @see [containsAll]
3434
* @see [containsOnly]

0 commit comments

Comments
 (0)