mirror of https://github.com/CGAL/cgal
Check if ifstream is well formed
This commit is contained in:
parent
451f084021
commit
289aaa6c97
|
|
@ -15,9 +15,12 @@ int main()
|
|||
|
||||
kdel.set_has_certificates(false);
|
||||
std::ifstream in("data/points_2");
|
||||
in >> *tr.active_points_2_table_handle();
|
||||
kdel.set_has_certificates(true);
|
||||
CGAL_assertion(in.good());
|
||||
|
||||
in >> *tr.active_points_2_table_handle();
|
||||
CGAL_assertion(!in.fail());
|
||||
|
||||
kdel.set_has_certificates(true);
|
||||
|
||||
std::cout << "Starting to run" << std::endl;
|
||||
while (sp->next_event_time()
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@ int main()
|
|||
Traits::Simulator::Handle sp= tr.simulator_handle();
|
||||
|
||||
std::ifstream in("data/points_3");
|
||||
CGAL_assertion(in.good());
|
||||
|
||||
in >> *tr.active_points_3_table_handle();
|
||||
CGAL_assertion(!in.fail());
|
||||
|
||||
kdel.set_has_certificates(true);
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,10 @@ int main()
|
|||
Traits::Simulator::Handle sp= tr.simulator_handle();
|
||||
|
||||
std::ifstream in("data/points_1");
|
||||
CGAL_assertion(in.good());
|
||||
|
||||
in >> *tr.active_points_1_table_handle();
|
||||
CGAL_assertion(!in.fail());
|
||||
|
||||
while (sp->next_event_time() != sp->end_time()) {
|
||||
sp->set_current_event_number(sp->current_event_number()+1);
|
||||
|
|
|
|||
|
|
@ -109,19 +109,19 @@ int main()
|
|||
typedef CGAL::Kinetic::Delaunay_triangulation_2<My_simulation_traits> KDel;
|
||||
|
||||
My_simulation_traits tr(0, 10000);
|
||||
My_simulation_traits::Simulator::Handle sp= tr.simulator_handle();
|
||||
My_simulation_traits::Simulator::Handle sp = tr.simulator_handle();
|
||||
|
||||
KDel kdel(tr);
|
||||
|
||||
kdel.set_has_certificates(false);
|
||||
std::ifstream in("data/points_with_color_2");
|
||||
CGAL_assertion(in.good());
|
||||
|
||||
in >> *tr.active_points_2_table_handle();
|
||||
|
||||
|
||||
CGAL_assertion(!in.fail());
|
||||
|
||||
kdel.set_has_certificates(true);
|
||||
|
||||
|
||||
|
||||
std::cout << "Starting to run" << std::endl;
|
||||
while (sp->next_event_time()
|
||||
< sp->end_time()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue