Skip to content
Snippets Groups Projects
Commit 00620736 authored by Oliver Sander's avatar Oliver Sander
Browse files

Add a rudimentary test for the ConfigParser

[[Imported from SVN: r6008]]
parent 468b7e4b
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ TESTPROGS = \
arraylisttest \
bigunsignedinttest \
bitsetvectortest \
configparsertest \
conversiontest \
deprtuplestest \
gcdlcmtest \
......@@ -161,6 +162,8 @@ testfassign_fail6_CPPFLAGS = $(AM_CPPFLAGS) -D_N=2 -D_M=2 -D_VALUES="1, 2, nextR
conversiontest_SOURCES = conversiontest.cc
configparsertest_SOURCES = configparsertest.cc
sourcescheck_NOSOURCES = exprtmpl.cc timing.cc
float_cmp_SOURCES = float_cmp.cc
......
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#include <config.h>
#include <string>
#include <dune/common/configparser.hh>
int main ()
{
Dune::ConfigParser parameterSet;
double testDouble = parameterSet.get<double>("testDouble");
int testInt = parameterSet.get<int>("testInt");
std::string testString = parameterSet.get<std::string>("testString");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment