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

Commit

Permalink
Fixing test testThatParserFailsWhenIncompleteDataIsPresent
Browse files Browse the repository at this point in the history
Was previously not iterating over test cases and instead using hard-coded string `" "` to test `JSONParser.parse`
  • Loading branch information
xaxis-kenan committed Oct 27, 2016
1 parent 3b32eff commit e34f3a5
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 e34f3a5

Please sign in to comment.