Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #230 from xaxis-kenan/patch-1
Browse files Browse the repository at this point in the history
Fixing test testThatParserFailsWhenIncompleteDataIsPresent
  • Loading branch information
jeremy-w committed Oct 27, 2016
2 parents 3b32eff + e34f3a5 commit cca737e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/JSONParserTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class JSONParserTests: XCTestCase {
func testThatParserFailsWhenIncompleteDataIsPresent() {
for s in [" ", "[0,", "{\"\":"] {
do {
let value = try JSONParser.parse(" ")
let value = try JSONParser.parse(s)
XCTFail("Unexpectedly parsed \(s) as \(value)")
} catch JSONParser.Error.endOfStreamUnexpected {
// expected error - do nothing
Expand Down

0 comments on commit cca737e

Please sign in to comment.