From: Wolfgang Bangerth 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=49cf4f61a45d6e363b488bc13b384f82f8f47984;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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + + +template +void test () +{ + deallog << std::boolalpha; + deallog << (FE_Nothing(1) == FE_Nothing(1, false)) << std::endl; + deallog << (FE_Nothing(1) == FE_Nothing(2)) << std::endl; + deallog << (FE_Nothing(2, true) == FE_Nothing(2, false)) << std::endl; + deallog << (FE_Nothing(1, true) == FE_Nothing(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