Skip to content

Commit

Permalink
Add more tests for celix_properties_getAsVersion.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Nov 16, 2024
1 parent fff61fc commit c29d9e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/utils/gtest/src/PropertiesTestSuite.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,13 @@ TEST_F(PropertiesTestSuite, GetVersionTest) {
celix_version_destroy(ver3);
celix_version_destroy(ver4);

celix_properties_setBool(properties, "bool", true);
celix_version_t* ver5;
status = celix_properties_getAsVersion(properties, "bool", nullptr, &ver5);
EXPECT_EQ(ver5, nullptr);
EXPECT_EQ(status, CELIX_SUCCESS);
celix_version_destroy(ver5);

celix_version_destroy(emptyVersion);
celix_properties_destroy(properties);
}
Expand Down

0 comments on commit c29d9e6

Please sign in to comment.