| 1241 | } |
| 1242 | |
| 1243 | void |
| 1244 | testIssue876() |
| 1245 | { |
| 1246 | stream_parser p; |
| 1247 | p.write_some( R"("\u20")", 5 ); |
| 1248 | |
| 1249 | std::string s = "19"; |
| 1250 | for( std::size_t i = 0; i < BOOST_JSON_STACK_BUFFER_SIZE; ++i ) |
| 1251 | s += " "; |
| 1252 | s += "\""; |
| 1253 | p.write_some( s.data(), s.size() ); // this asserted because of a bug |
| 1254 | BOOST_TEST( p.release().is_string() ); |
| 1255 | } |
| 1256 | |
| 1257 | // https://github.com/boostorg/json/pull/814 |
| 1258 | void |
nothing calls this directly
no test coverage detected