Skip to content

Commit

Permalink
Test swap.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Feb 26, 2015
1 parent 54695ab commit 6bd1f05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PreludeTests/PreludeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ final class PreludeTests: XCTestCase {
func testConst() {
XCTAssertEqual(const(0)(1), 0)
}

func testSwap() {
XCTAssertEqual(map(enumerate("hello"), swap).count, 5)
}
}

0 comments on commit 6bd1f05

Please sign in to comment.