Commit 463c38df authored by Niels's avatar Niels

fix test case

parent 4b9bd96a
......@@ -2443,10 +2443,10 @@ class basic_json
return ":";
case (token_type::value_separator):
return ",";
case (token_type::parse_error):
return "<parse error>";
case (token_type::end_of_input):
return "<end of input>";
default:
return "<parse error>";
}
}
......
......@@ -2443,10 +2443,10 @@ class basic_json
return ":";
case (token_type::value_separator):
return ",";
case (token_type::parse_error):
return "<parse error>";
case (token_type::end_of_input):
return "<end of input>";
default:
return "<parse error>";
}
}
......
......@@ -4066,12 +4066,17 @@ TEST_CASE("lexer class")
case ('7'):
case ('8'):
case ('9'):
case ('"'):
{
CHECK(json::lexer(s.c_str()).scan() != json::lexer::token_type::parse_error);
break;
}
case ('"'):
{
// no idea what to do here
break;
}
// whitespace
case (' '):
case ('\t'):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment