From fb8f9ee0094da903538f41d6f51d0a54c6ed6635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=E2=89=A1ZRS?= <12814349+LZRS@users.noreply.github.com> Date: Tue, 17 Dec 2024 02:32:53 +0300 Subject: [PATCH] Rename equalsShallowUnordered to resourceTypeAndIdEqualUnordered --- .../com/google/android/fhir/db/impl/DatabaseImplTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt b/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt index a2d8838c9d..fd603a2bb7 100644 --- a/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt +++ b/engine/src/androidTest/java/com/google/android/fhir/db/impl/DatabaseImplTest.kt @@ -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, second: List) = + private fun resourceTypeAndIdEqualUnordered(first: List, second: List) = first.size == second.size && first.map { it.resourceType to it.logicalId }.toSet() == second.map { it.resourceType to it.logicalId }.toSet() @@ -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 { @@ -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 {