Fixed unit tests

This commit is contained in:
Matthias Koefferlein 2025-05-04 15:41:26 +02:00
parent aca3095efa
commit f7c7e8b0be
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ TEST(internal_vertex)
std::vector<std::string> ip;
for (size_t i = 0; i < p->internal_vertexes (); ++i) {
ip.push_back (p->internal_vertex (i)->to_string () + "#" + tl::to_string (p->internal_vertex (i)->ids ()));
ip.push_back (p->internal_vertex (i)->to_string () + "#" + tl::join (p->internal_vertex (i)->ids ().begin (), p->internal_vertex (i)->ids ().end (), ","));
}
std::sort (ip.begin (), ip.end ());
EXPECT_EQ (tl::join (ip, "/"), "(0, 0)#2/(0, 0.05)#0/(0.2, 0.07)#1");

View File

@ -61,7 +61,7 @@ TEST(basic)
v1->set_is_precious (true, 1);
EXPECT_EQ (v1->is_precious (), true);
EXPECT_EQ (v1->ids ().size (), 2u);
EXPECT_EQ (*v1->ids ().begin (), 2u);
EXPECT_EQ (*v1->ids ().begin (), 1u);
}
TEST(edge)