Skip to content

Commit

Permalink
[CI] fix loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Nov 6, 2024
1 parent 470601c commit 1055d1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions files/animals.owl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<owl:Class rdf:about="animals#Bird">
<rdfs:subClassOf rdf:resource="animals#Animal"/>
<rdfs:label xml:lang="fr">oiseau</rdfs:label>
<rdfs:label xml:lang="en">bird</rdfs:label>
</owl:Class>


Expand Down
12 changes: 6 additions & 6 deletions src/tests/CI/feature_loading_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ TEST(feature_loading, reset)
if(res.empty() == false)
EXPECT_EQ(res.front(), "affair");

res = onto_ptr->individuals.find("pink");
res = onto_ptr->individuals.find("bird");
EXPECT_EQ(res.size(), 1);
if(res.empty() == false)
EXPECT_EQ(res.front(), "pink");
EXPECT_EQ(res.front(), "Bird");

EXPECT_TRUE(onto_ptr->actions.clear());
EXPECT_TRUE(onto_ptr->actions.close());
Expand All @@ -31,10 +31,10 @@ TEST(feature_loading, reset)
if(res.empty() == false)
EXPECT_NE(res.front(), "affair");

res = onto_ptr->individuals.find("pink");
res = onto_ptr->individuals.find("bird");
EXPECT_NE(res.size(), 1);
if(res.empty() == false)
EXPECT_NE(res.front(), "pink");
EXPECT_NE(res.front(), "Bird");

EXPECT_TRUE(onto_ptr->actions.clear());
std::string path = ros::package::getPath("ontologenius");
Expand All @@ -48,10 +48,10 @@ TEST(feature_loading, reset)
if(res.empty() == false)
EXPECT_EQ(res.front(), "affair");

res = onto_ptr->individuals.find("pink");
res = onto_ptr->individuals.find("bird");
EXPECT_NE(res.size(), 1);
if(res.empty() == false)
EXPECT_NE(res.front(), "pink");
EXPECT_NE(res.front(), "Bird");
}

TEST(feature_loading, language)
Expand Down

0 comments on commit 1055d1e

Please sign in to comment.