Skip to content

Commit

Permalink
Rename equalsShallowUnordered to resourceTypeAndIdEqualUnordered
Browse files Browse the repository at this point in the history
  • Loading branch information
LZRS committed Dec 16, 2024
1 parent 02de069 commit fb8f9ee
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5276,7 +5276,7 @@ class DatabaseImplTest {
first.size == second.size &&
first.asSequence().zip(second.asSequence()).all { (x, y) -> equalsShallow(x, y) }

private fun equalsShallowUnordered(first: List<Resource>, second: List<Resource>) =
private fun resourceTypeAndIdEqualUnordered(first: List<Resource>, second: List<Resource>) =
first.size == second.size &&
first.map { it.resourceType to it.logicalId }.toSet() ==
second.map { it.resourceType to it.logicalId }.toSet()
Expand All @@ -5292,7 +5292,7 @@ class DatabaseImplTest {
if (inOrder) {
equalsShallow(x.value, y.value)
} else {
equalsShallowUnordered(x.value, y.value)
resourceTypeAndIdEqualUnordered(x.value, y.value)
}
}
} else {
Expand All @@ -5311,7 +5311,7 @@ class DatabaseImplTest {
if (inOrder) {
equalsShallow(x.value, y.value)
} else {
equalsShallowUnordered(x.value, y.value)
resourceTypeAndIdEqualUnordered(x.value, y.value)
}
}
} else {
Expand Down

0 comments on commit fb8f9ee

Please sign in to comment.