-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
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
Rewrite eval unit tests to gtest (pass 1). #33353
Rewrite eval unit tests to gtest (pass 1). #33353
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
TEST_DO(f1.eval("a+b").verify_error("type resolving failed")); | ||
TEST(EvalExprTest, require_that_type_issues_produces_error) | ||
{ | ||
Server f1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably be part of a parent fixture
gen_key(*Function::parse("\"b\""), PassParams::SEPARATE)); | ||
EXPECT_NOT_EQUAL(gen_key(*Function::parse("\"a\""), PassParams::ARRAY), | ||
EXPECT_NE(gen_key(*Function::parse("\"a\""), PassParams::ARRAY), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider restoring indentation alignment for added prettiness
EXPECT_EQUAL("[bogus(]...[unknown function: 'bogus']...[x)+y]", Function::parse(params, "bogus(x)+y")->dump()); | ||
EXPECT_EQUAL("[bogus]...[unknown symbol: 'bogus']...[(x)+y]", Function::parse(params, "bogus(x)+y", MySymbolExtractor())->dump()); | ||
EXPECT_EQUAL("[bogus(x)]...[unknown symbol: 'bogus(x)']...[+y]", Function::parse(params, "bogus(x)+y", MySymbolExtractor({'(', ')'}))->dump()); | ||
TEST(FunctionTest, require_that_unknown_function_works_as_expected__with_custom_symbol_extractor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: double underscore due to double space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@vekterli : please review