mirror of https://github.com/CGAL/cgal
Move a range test
This commit is contained in:
parent
134909378c
commit
13cf0b677d
|
|
@ -123,6 +123,7 @@ struct Tester
|
|||
assert(c3t3.is_in_complex(ch));
|
||||
assert(c3t3.subdomain_index(ch) == subdomain_index);
|
||||
|
||||
// Test iterator range
|
||||
{
|
||||
Cell_handle ch = *c3t3.cells_in_complex().begin();
|
||||
for (auto c : c3t3.cells_in_complex()) {
|
||||
|
|
@ -131,17 +132,6 @@ struct Tester
|
|||
}
|
||||
}
|
||||
|
||||
{
|
||||
if (!c3t3.vertices_in_complex().empty())
|
||||
{
|
||||
Vertex_handle vh = *c3t3.vertices_in_complex().begin();
|
||||
for (auto v : c3t3.vertices_in_complex()) {
|
||||
assert(v == vh);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------
|
||||
// Test move construction
|
||||
//-------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -218,6 +218,18 @@ struct Tester
|
|||
|| ( v == vp4 && tr.point(vit) == p4 ) );
|
||||
|
||||
assert ( tv1.in_dimension() == tv2.in_dimension() );
|
||||
|
||||
|
||||
// Test iterator range
|
||||
{
|
||||
Vertex_handle vh = *c3t3.vertices_in_complex().begin();
|
||||
for (auto v : c3t3.vertices_in_complex()) {
|
||||
assert(v == vh);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------
|
||||
// Check adjacencies
|
||||
//-------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in New Issue