diff --git a/CacheClearer.swift b/ListableUI/Sources/CacheClearer.swift similarity index 100% rename from CacheClearer.swift rename to ListableUI/Sources/CacheClearer.swift diff --git a/CacheClearerTests.swift b/ListableUI/Tests/CacheClearerTests.swift similarity index 74% rename from CacheClearerTests.swift rename to ListableUI/Tests/CacheClearerTests.swift index 449befe7..d31404f1 100644 --- a/CacheClearerTests.swift +++ b/ListableUI/Tests/CacheClearerTests.swift @@ -8,8 +8,8 @@ class CacheClearerTests: XCTestCase { ListProperties.headerFooterMeasurementCache.push(UIView(), with: .identifier(for: UIView.self)) ListProperties.itemMeasurementCache.push(UIView(), with: .identifier(for: UIView.self)) - XCTAssertEqual(ListProperties.headerFooterMeasurementCache.cachedViewCount, 1) - XCTAssertEqual(ListProperties.itemMeasurementCache.cachedViewCount, 1) + XCTAssertGreaterThanOrEqual(ListProperties.headerFooterMeasurementCache.cachedViewCount, 1) + XCTAssertGreaterThanOrEqual(ListProperties.itemMeasurementCache.cachedViewCount, 1) CacheClearer.clearStaticCaches()