We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aa709c commit 813ae0cCopy full SHA for 813ae0c
tesseract_task_composer/test/tesseract_task_composer_core_unit.cpp
@@ -38,9 +38,11 @@ using namespace tesseract_planning;
38
TEST(TesseractTaskComposerCoreUnit, TaskComposerKeysTests) // NOLINT
39
{
40
TaskComposerKeys keys;
41
- EXPECT_TRUE(keys.size() == 0);
+ EXPECT_TRUE(keys.empty());
42
keys.add("first", "I1");
43
keys.add("second", std::vector<std::string>{ "I2" });
44
+ EXPECT_TRUE(keys.size() == 2);
45
+ EXPECT_FALSE(keys.empty());
46
EXPECT_EQ(keys.get("first"), "I1");
47
EXPECT_EQ(keys.get<std::vector<std::string>>("second"), std::vector<std::string>{ "I2" });
48
EXPECT_TRUE(keys.has("first"));
0 commit comments