From: Denis Davydov Date: Mon, 24 Apr 2017 15:51:38 +0000 (+0200) Subject: add a test X-Git-Tag: v9.0.0-rc1~1659^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab4f3e67116c2b1c8609e3e1aec49c5f1053f9ac;p=dealii.git add a test --- diff --git a/tests/base/point_02.cc b/tests/base/point_02.cc new file mode 100644 index 0000000000..6a68967929 --- /dev/null +++ b/tests/base/point_02.cc @@ -0,0 +1,56 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2010 - 2015 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +// test for Point::distance_square() + +#include "../tests.h" +#include +#include +#include +#include +#include + + +template +void check () +{ + Point p1, p2; + for (unsigned int i=0; i(); + check<2>(); + check<3>(); +} diff --git a/tests/base/point_02.output b/tests/base/point_02.output new file mode 100644 index 0000000000..9800fc0931 --- /dev/null +++ b/tests/base/point_02.output @@ -0,0 +1,4 @@ + +DEAL::Ok +DEAL::Ok +DEAL::Ok