🔨 improved code coverage
This commit is contained in:
parent
c32d2e5b3c
commit
3a5cf9bd0a
2 changed files with 13 additions and 6 deletions
|
@ -158,6 +158,15 @@ TEST_CASE("lexer class")
|
|||
}
|
||||
}
|
||||
|
||||
SECTION("very large string")
|
||||
{
|
||||
// strings larger than 1024 bytes yield a resize of the lexer's yytext buffer
|
||||
std::string s("\"");
|
||||
s += std::string(2048, 'x');
|
||||
s += "\"";
|
||||
CHECK((json::lexer(s.c_str(), 2050).scan() == json::lexer::token_type::value_string));
|
||||
}
|
||||
|
||||
/* NOTE: to_unicode function has been removed
|
||||
SECTION("to_unicode")
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue