From 059a17d4041ce074cd519af7dce24a7c072dcd02 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 7 May 2016 18:21:34 -0400 Subject: [PATCH] Make a test start with a valid triangulation. The goal of this test is to verify that an exception is thrown when the mapped cell is distorted: the original triangulation should be valid. --- tests/bits/distorted_mapped_cells_01.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/bits/distorted_mapped_cells_01.cc b/tests/bits/distorted_mapped_cells_01.cc index 6f88b392cd..6429150f2d 100644 --- a/tests/bits/distorted_mapped_cells_01.cc +++ b/tests/bits/distorted_mapped_cells_01.cc @@ -33,6 +33,14 @@ void test() // through MappingQEulerian Triangulation tria; std::vector > points (4); + points[0][0] = 0.0; + points[0][1] = 0.0; + points[1][0] = 0.01; + points[1][1] = 0.0; + points[2][0] = 0.0; + points[2][1] = 0.01; + points[3][0] = 0.01; + points[3][1] = 0.01; std::vector > cells (1); cells[0].vertices[0] = 0; @@ -92,6 +100,3 @@ main() return 0; } - - - -- 2.39.5