[go: up one dir, main page]

Skip to content

Commit

Permalink
Use new lazy assertion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
danielctull committed Dec 3, 2020
1 parent 016b933 commit b8bd047
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tests/SwiftAlgorithmsTests/ReductionsTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ final class ReductionsTests: XCTestCase {
XCTAssertEqualCollections([1].lazy.reductions(0, +), [0, 1])
XCTAssertEqualCollections(EmptyCollection<Int>().lazy.reductions(0, +), [0])

XCTAssertLazy([1].lazy.reductions(0, +))
XCTAssertLazySequence((1...).prefix(1).lazy.reductions(0, +))
XCTAssertLazySequence([1].lazy.reductions(0, +))
XCTAssertLazyCollection([1].lazy.reductions(0, +))
}

func testExclusiveEager() {
Expand Down Expand Up @@ -58,7 +60,9 @@ final class ReductionsTests: XCTestCase {
XCTAssertEqualCollections([1].lazy.reductions(+), [1])
XCTAssertEqualCollections(EmptyCollection<Int>().lazy.reductions(+), [])

XCTAssertLazy([1].lazy.reductions(+))
XCTAssertLazySequence((1...).prefix(1).lazy.reductions(+))
XCTAssertLazySequence([1].lazy.reductions(+))
XCTAssertLazyCollection([1].lazy.reductions(+))
}

func testInclusiveEager() {
Expand Down

0 comments on commit b8bd047

Please sign in to comment.