From: Wolfgang Bangerth Date: Tue, 6 May 2003 16:06:50 +0000 (+0000) Subject: New test X-Git-Tag: v8.0.0~16561 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6929c9ee3bc27e4c6ba335b3038f2480eaedcb86;p=dealii.git New test git-svn-id: https://svn.dealii.org/trunk@7588 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/Makefile b/tests/bits/Makefile index e18d9d154c..3abf9c9ad7 100644 --- a/tests/bits/Makefile +++ b/tests/bits/Makefile @@ -87,6 +87,7 @@ roy_1.exe : roy_1.g.$(OBJEXT) $(libraries) denis_1.exe : denis_1.g.$(OBJEXT) $(libraries) unit_support_points.exe : unit_support_points.g.$(OBJEXT) $(libraries) parameter_handler_1.exe : parameter_handler_1.g.$(OBJEXT) $(libraries) +parameter_handler_2.exe : parameter_handler_2.g.$(OBJEXT) $(libraries) tests = anna_1 anna_2 anna_3 anna_4 anna_5 anna_6 \ geometry_info_1 \ @@ -106,7 +107,7 @@ tests = anna_1 anna_2 anna_3 anna_4 anna_5 anna_6 \ fe_tools_05 fe_tools_06 fe_tools_07 fe_tools_08 \ roy_1 \ denis_1 \ - unit_support_points parameter_handler_1 + unit_support_points parameter_handler_1 parameter_handler_2 ############################################################ diff --git a/tests/bits/parameter_handler_2.cc b/tests/bits/parameter_handler_2.cc new file mode 100644 index 0000000000..5ef3112c03 --- /dev/null +++ b/tests/bits/parameter_handler_2.cc @@ -0,0 +1,46 @@ +//---------------------------- parameter_handler_2.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2003 by the deal.II authors and Brent Bayley +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------- parameter_handler_2.cc --------------------------- + + +// check the Patterns::List pattern. this particular test failed at +// one point in time with an assertion due to a pretty stupid bug. + +#include +#include +#include + + +int main () +{ + std::ofstream logfile("parameter_handler_2.output"); + deallog.attach(logfile); + deallog.depth_console(0); + + ParameterHandler prm; + prm.enter_subsection ("Testing"); + prm.declare_entry ("Function", + "a", + Patterns::List(Patterns::Selection("a|b|c|d|e|f|g|h"))); + prm.leave_subsection (); + + prm.read_input("parameter_handler_2.prm1"); + + std::string list; + prm.enter_subsection ("Testing"); + list = prm.get ("Function"); + prm.leave_subsection (); + + deallog << list << std::endl; + + return 0; +}