36 #include <gtest/gtest.h> 55 ASSERT_TRUE(std::find(args.begin(), args.end(),
"hello") != args.end());
56 ASSERT_TRUE(std::find(args.begin(), args.end(),
"goodbye") != args.end());
57 ASSERT_TRUE(std::find(args.begin(), args.end(),
"__name:=asdf") == args.end());
58 ASSERT_TRUE(std::find(args.begin(), args.end(),
"__log:=fdsa") == args.end());
59 ASSERT_TRUE(std::find(args.begin(), args.end(),
"a:=b") == args.end());
64 main(
int argc,
char** argv)
66 testing::InitGoogleTest(&argc, argv);
67 return RUN_ALL_TESTS();
TEST(Args, removeROSArgs)
int main(int argc, char **argv)
std::vector< std::string > V_string
ROSCPP_DECL void removeROSArgs(int argc, const char *const *argv, V_string &args_out)