[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 Feb 25, 2021
1 parent ab40e33 commit 6b01737
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 6b01737

Please sign in to comment.