We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if (*c.json != '\0') { v->type = LEPT_NULL; //应该加上这一行 ret = LEPT_PARSE_ROOT_NOT_SINGULAR; }
因为在test_parse_root_not_singular()函数中测试的刚好是
test_parse_root_not_singular()
EXPECT_EQ_INT(LEPT_PARSE_ROOT_NOT_SINGULAR, lept_parse(&v, "null x"));
所以如果解析错误了, 后续的
EXPECT_EQ_INT(LEPT_NULL, lept_get_type(&v));
测试还是可以通过, 如果增加新的测试, 比如
EXPECT_EQ_INT(LEPT_PARSE_ROOT_NOT_SINGULAR, lept_parse(&v, "false a"));
就无法通过了.
The text was updated successfully, but these errors were encountered:
刚看了第二章, 发现改了:smile:, 求关闭
Sorry, something went wrong.
之前的确是少写了。多谢反馈。
No branches or pull requests
因为在
test_parse_root_not_singular()
函数中测试的刚好是所以如果解析错误了, 后续的
EXPECT_EQ_INT(LEPT_NULL, lept_get_type(&v));
测试还是可以通过, 如果增加新的测试, 比如
就无法通过了.
The text was updated successfully, but these errors were encountered: