Skip to content

Commit

Permalink
gh-674: Add missing test for celix_properties_setEntry.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Apr 2, 2024
1 parent 3437c04 commit d38f0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/utils/gtest/src/PropertiesTestSuite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ TEST_F(PropertiesTestSuite, SetEntryTest) {
celix_properties_setEntry(props2, visit.key, &visit.entry);
celix_properties_setEntry(nullptr, visit.key, &visit.entry);
}

celix_properties_setEntry(props2, "key7", nullptr);
EXPECT_EQ(6, celix_properties_size(props2));
EXPECT_STREQ("value1", celix_properties_getAsString(props2, "key1", nullptr));
EXPECT_EQ(123, celix_properties_getAsLong(props2, "key2", -1L));
Expand Down

0 comments on commit d38f0b1

Please sign in to comment.