mirror of https://github.com/CGAL/cgal
Check that a moved-from triangulation can be assigned
This commit is contained in:
parent
3b0cea9a47
commit
fe99ad3a2f
|
|
@ -438,6 +438,11 @@ _test_cls_delaunay_3(const Triangulation &)
|
||||||
Cls T_move_constructed2(std::move(T_copy2));
|
Cls T_move_constructed2(std::move(T_copy2));
|
||||||
T_copy2.clear();
|
T_copy2.clear();
|
||||||
assert(T_copy2 == Cls());
|
assert(T_copy2 == Cls());
|
||||||
|
|
||||||
|
Cls T_copy3(T0);
|
||||||
|
Cls T_move_constructed3(std::move(T_copy3));
|
||||||
|
T_copy3 = T0;
|
||||||
|
assert(T_copy3 == T0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affectation :
|
// Affectation :
|
||||||
|
|
|
||||||
|
|
@ -220,5 +220,10 @@ _test_cls_regular_3(const Triangulation &)
|
||||||
Cls T_move_constructed2(std::move(T_copy2));
|
Cls T_move_constructed2(std::move(T_copy2));
|
||||||
T_copy2.clear();
|
T_copy2.clear();
|
||||||
assert(T_copy2 == Cls());
|
assert(T_copy2 == Cls());
|
||||||
|
|
||||||
|
Cls T_copy3(T);
|
||||||
|
Cls T_move_constructed3(std::move(T_copy3));
|
||||||
|
T_copy3 = T;
|
||||||
|
assert(T_copy3 == T);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -303,6 +303,11 @@ _test_cls_triangulation_3(const Triangulation &)
|
||||||
Cls T_move_constructed2(std::move(T_copy2));
|
Cls T_move_constructed2(std::move(T_copy2));
|
||||||
T_copy2.clear();
|
T_copy2.clear();
|
||||||
assert(T_copy2 == Cls());
|
assert(T_copy2 == Cls());
|
||||||
|
|
||||||
|
Cls T_copy3(T0);
|
||||||
|
Cls T_move_constructed3(std::move(T_copy3));
|
||||||
|
T_copy3 = T0;
|
||||||
|
assert(T_copy3 == T0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assignment
|
// Assignment
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue