From ab4f3e67116c2b1c8609e3e1aec49c5f1053f9ac Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Mon, 24 Apr 2017 17:51:38 +0200 Subject: [PATCH] add a test --- tests/base/point_02.cc | 56 ++++++++++++++++++++++++++++++++++++++ tests/base/point_02.output | 4 +++ 2 files changed, 60 insertions(+) create mode 100644 tests/base/point_02.cc create mode 100644 tests/base/point_02.output 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 -- 2.39.5