From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Thu, 3 May 2018 21:07:29 +0000 (-0600)
Subject: Add a test.
X-Git-Tag: v9.0.0-rc1~22^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6441%2Fhead;p=dealii.git

Add a test.
---

diff --git a/tests/hp/fe_nothing_22.cc b/tests/hp/fe_nothing_22.cc
new file mode 100644
index 0000000000..f6ddcd7c8b
--- /dev/null
+++ b/tests/hp/fe_nothing_22.cc
@@ -0,0 +1,61 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2009 - 2017 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 FE_Nothing::operator==()
+
+
+#include "../tests.h"
+#include <deal.II/base/quadrature_lib.h>
+#include <deal.II/fe/fe_nothing.h>
+#include <deal.II/fe/fe_q.h>
+#include <deal.II/fe/fe_system.h>
+#include <deal.II/grid/tria.h>
+#include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/tria_accessor.h>
+#include <deal.II/grid/tria_iterator.h>
+#include <deal.II/grid/grid_refinement.h>
+#include <deal.II/dofs/dof_accessor.h>
+#include <deal.II/dofs/dof_tools.h>
+#include <deal.II/dofs/dof_handler.h>
+#include <deal.II/numerics/vector_tools.h>
+#include <deal.II/base/function.h>
+
+
+
+
+template <int dim>
+void test ()
+{
+  deallog << std::boolalpha;
+  deallog << (FE_Nothing<dim>(1) == FE_Nothing<dim>(1, false)) << std::endl;
+  deallog << (FE_Nothing<dim>(1) == FE_Nothing<dim>(2)) << std::endl;
+  deallog << (FE_Nothing<dim>(2, true) == FE_Nothing<dim>(2, false)) << std::endl;
+  deallog << (FE_Nothing<dim>(1, true) == FE_Nothing<dim>(2, true)) << std::endl;
+}
+
+
+
+int main ()
+{
+  initlog();
+
+  test<1> ();
+  test<2> ();
+  test<3> ();
+
+  deallog << "OK" << std::endl;
+}
diff --git a/tests/hp/fe_nothing_22.output b/tests/hp/fe_nothing_22.output
new file mode 100644
index 0000000000..9ce031bab8
--- /dev/null
+++ b/tests/hp/fe_nothing_22.output
@@ -0,0 +1,14 @@
+
+DEAL::true
+DEAL::false
+DEAL::false
+DEAL::false
+DEAL::true
+DEAL::false
+DEAL::false
+DEAL::false
+DEAL::true
+DEAL::false
+DEAL::false
+DEAL::false
+DEAL::OK