8000 Update interactive opacity tests · fermoya/SwiftUIPager@30c9a68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30c9a68

Browse files
committed
Update interactive opacity tests
1 parent 56a6ea1 commit 30c9a68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/SwiftUIPagerTests/PagerContent+Helper_Tests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ final class PagerContent_Helper_Tests: XCTestCase {
5454
let neighbor2 = PageWrapper(batchId: 1, keyPath: \.self, element: 3)
5555
let neighbor3 = PageWrapper(batchId: 1, keyPath: \.self, element: 4)
5656
XCTAssertEqual(Int((pagerContent.opacity(for: focusedItem) * 10).rounded()), 8)
57-
XCTAssertEqual(Int((pagerContent.opacity(for: neighbor1) * 10).rounded()), 4)
58-
XCTAssertEqual(Int((pagerContent.opacity(for: neighbor2) * 10).rounded()), 8)
59-
XCTAssertEqual(Int((pagerContent.opacity(for: neighbor3) * 10).rounded()), 4)
57+
XCTAssertEqual(Int((pagerContent.opacity(for: neighbor1) * 10).rounded()), 8)
58+
XCTAssertEqual(Int((pagerContent.opacity(for: neighbor2) * 10).rounded()), 4)
59+
XCTAssertEqual(Int((pagerContent.opacity(for: neighbor3) * 10).rounded()), 0)
6060
}
6161

6262
func test_GivenMultiplePaginationPager_WhenDragResult_ThenValues() {

0 commit comments

Comments
 (0)
0