Skip to content

Commit 61ea70a

Browse files
committed
fix: Correct expected result for left folding function
1 parent a3b4346 commit 61ea70a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/list-ops/Tests/ListOpsTests/ListOpsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ let RUNALL = Bool(ProcessInfo.processInfo.environment["RUNALL", default: "false"
115115
@Test("direction dependent function applied to non-empty list", .enabled(if: RUNALL))
116116
func testDirectionDependentFunctionAppliedToNonEmptyList6() {
117117
let value = ListOps.foldLeft([1, 2, 3, 4], accumulated: 24.0) { $0 / $1 }
118-
let expected = 64.0
118+
let expected = 1.0
119119
#expect(value == expected)
120120
}
121121

0 commit comments

Comments
 (0)