Skip to content

Commit

Permalink
enumerate is a protocol extension method.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrix committed Jun 8, 2015
1 parent b6f6b54 commit 8987290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PreludeTests/PreludeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ final class PreludeTests: XCTestCase {
}

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

0 comments on commit 8987290

Please sign in to comment.