Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Updating to swift 3 preview 1 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Jun 1, 2016
1 parent 9b047e9 commit 6ee6278
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 57 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DEVELOPMENT-SNAPSHOT-2016-05-09-a
3.0-preview-1-SNAPSHOT-2016-05-31-a
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ install:
script:
- swift build
- swift test
- make example
notifications:
email:
on_success: never
Expand Down
54 changes: 0 additions & 54 deletions Makefile

This file was deleted.

1 change: 1 addition & 0 deletions Sources/Jay/Reader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ extension Reader {
}

// Consumes all contiguous whitespace and returns # of consumed chars
@discardableResult
mutating func consumeWhitespace() throws -> Int {
var counter = 0
while !self.isDone() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/Jay/ReaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class ReaderTests: XCTestCase {

func testReadNext_EnoughAvailable() {
var mainReader = ByteReader(content: "hello world")
try! mainReader.readNext(2)
_ = try! mainReader.readNext(2)
let next = try! mainReader.readNext(5)
XCTAssert(next == "llo w".chars())
XCTAssert(mainReader.curr() == "o".char())
Expand Down

0 comments on commit 6ee6278

Please sign in to comment.