diff --git a/AUTHORS.md b/AUTHORS.md index 02a1bbc..db4c5e8 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -43,4 +43,5 @@ 37. Maxim Ivanov: [@drcolombo](https://github.com/drcolombo) ([Contributions](https://github.com/MarkusAmshove/Kluent/commits?author=drcolombo)) 38. Piotr Bakalarski: [@piotrb5e3](https://github.com/piotrb5e3) ([Contributions](https://github.com/MarkusAmshove/Kluent/commits?author=piotrb5e3)) 39. Priyank Gupta: [@priyaaank](https://github.com/priyaaank) ([Contributions](https://github.com/MarkusAmshove/Kluent/commits?author=priyaaank)) -40. Anders Ullnæss: [@andersu](https://github.com/andersu) ([Contributions](https://github.com/MarkusAmshove/Kluent/commits?author=andersu)) +40. Sami Samhuri: [@samsonjs](https://github.com/samsonjs) ([Contributions](https://github.com/MarkusAmshove/Kluent/commits?author=samsonjs)) +41. Anders Ullnæss: [@andersu](https://github.com/andersu) ([Contributions](https://github.com/MarkusAmshove/Kluent/commits?author=andersu)) diff --git a/common/src/main/kotlin/org/amshove/kluent/Collections.kt b/common/src/main/kotlin/org/amshove/kluent/Collections.kt index 06569c9..898102e 100644 --- a/common/src/main/kotlin/org/amshove/kluent/Collections.kt +++ b/common/src/main/kotlin/org/amshove/kluent/Collections.kt @@ -294,13 +294,13 @@ infix fun BooleanArray.shouldMatchAllWith(predicate: (Boolean) -> Boolean) = infix fun ByteArray.shouldEqual(expected: ByteArray) = shouldBeEqualTo(expected) infix fun ByteArray.shouldBeEqualTo(expected: ByteArray) = - apply { assertArrayEquals(this.toTypedArray(), expected.toTypedArray()) } + apply { assertArrayEquals(expected.toTypedArray(), this.toTypedArray()) } @Deprecated("Use `shouldNotBeEqualTo`", ReplaceWith("this.shouldNotBeEqualTo(expected)")) infix fun ByteArray.shouldNotEqual(expected: ByteArray) = shouldNotBeEqualTo(expected) infix fun ByteArray.shouldNotBeEqualTo(expected: ByteArray) = - apply { assertArrayNotEquals(this.toTypedArray(), expected.toTypedArray()) } + apply { assertArrayNotEquals(expected.toTypedArray(), this.toTypedArray()) } fun ByteArray.shouldHaveSingleItem() = toList().shouldHaveSingleItem()