fixed BOM handling #344
This commit is contained in:
1 parent
b820bb3b1f
commit
a8136c578a
3 files changed
+252
-285
No files matched your search
@@ -159,7 +159,7 @@ TEST_CASE("Unicode", "[hide]")
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
SECTION("ignore byte-order-mark")
|
||||
{
|
||||
// read a file with a UTF-8 BOM
|
||||
@@ -167,7 +167,7 @@ TEST_CASE("Unicode", "[hide]")
|
||||
json j;
|
||||
CHECK_NOTHROW(j << f);
|
||||
}
|
||||
*/
|
||||
|
||||
SECTION("error for incomplete/wrong BOM")
|
||||
{
|
||||
CHECK_THROWS_AS(json::parse("\xef\xbb"), std::invalid_argument);
|
||||
|
||||
Reference in new issue
Block a user