]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added space at end
authorsairajat <rajat.arora9464@gmail.com>
Sun, 12 Feb 2017 04:40:53 +0000 (23:40 -0500)
committersairajat <rajat.arora9464@gmail.com>
Sun, 12 Feb 2017 04:40:53 +0000 (23:40 -0500)
tests/parameter_handler/parameter_handler_3_with_space.cc
tests/parameter_handler/parameter_handler_3_with_space.output
tests/parameter_handler/prm/parameter_handler_3_with_space.prm [new file with mode: 0644]

index f16ab06ff22a6f7ae7e5ff5e6d88c285a51b237b..4cd713917403f9f5ccd8ed3fdee5a92a2c75637b 100644 (file)
@@ -34,10 +34,14 @@ int main ()
 
       ParameterHandler prm;
       prm.enter_subsection ("Testing");
-      prm.declare_entry ("string list",
+      prm.declare_entry ("string list1",
                          "a",
                          Patterns::List(Patterns::Selection(" a|b|c|d|e|f|g|h")),
                          "docs 1");
+      prm.declare_entry ("string list2",
+                         "h",
+                         Patterns::List(Patterns::Selection("a|b|c|d|e|f|g|h ")),
+                         "docs 2");
       prm.declare_entry ("int",
                          "1",
                          Patterns::Integer());
@@ -48,7 +52,7 @@ int main ()
       prm.leave_subsection ();
 
       // read and then write parameters
-      prm.read_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
+      prm.read_input(SOURCE_DIR "/prm/parameter_handler_3_with_space.prm");
       prm.print_parameters (logfile, ParameterHandler::Text);
     }
   catch (std::exception &exc)
index cf97eae312bff94342f31192b00621eb71f934de..6c16d6cbc893e40072ab7a4c410755c3e6058d5c 100644 (file)
@@ -7,7 +7,8 @@ subsection Testing
   set int         = 3         # default: 1
 
   # docs 1
-  set string list = a, b, c   # default: a
+  set string list1 = a, b, c   # default: a
+  set string list2 = h, b, c   # default: h
 end
 
 
diff --git a/tests/parameter_handler/prm/parameter_handler_3_with_space.prm b/tests/parameter_handler/prm/parameter_handler_3_with_space.prm
new file mode 100644 (file)
index 0000000..b173780
--- /dev/null
@@ -0,0 +1,5 @@
+subsection Testing
+  set string list1 = a, b, c
+  set string list2 = h, b, c
+  set int         = 3
+end

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.