Skip to content

Commit

Permalink
Add passing test for UTF-8 with BOM
Browse files Browse the repository at this point in the history
I got a bug report saying this caused a crash in 4.0.1, but I am unable
to reproduce it as this test shows.
  • Loading branch information
stig committed Oct 30, 2016
1 parent 6959eee commit 345bed8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions TestData/main/bom_01.err
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Illegal start of token [ï] at index 0
1 change: 1 addition & 0 deletions TestData/main/bom_01.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[
2 changes: 1 addition & 1 deletion Tests/MainSuite.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (void)testParseError {

}];

XCTAssertEqual(count, (NSUInteger)36);
XCTAssertEqual(count, (NSUInteger)37);
}

- (void)testWriteSuccess {
Expand Down

0 comments on commit 345bed8

Please sign in to comment.