From 49cf4f61a45d6e363b488bc13b384f82f8f47984 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 3 May 2018 15:07:29 -0600 Subject: [PATCH] Add a test. --- tests/hp/fe_nothing_22.cc | 61 +++++++++++++++++++++++++++++++++++ tests/hp/fe_nothing_22.output | 14 ++++++++ 2 files changed, 75 insertions(+) create mode 100644 tests/hp/fe_nothing_22.cc create mode 100644 tests/hp/fe_nothing_22.output 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 -- 2.39.5