From ae5823b529efb0dfe39c43c636354ed444a46931 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Wed, 29 Apr 2020 14:01:48 +0200 Subject: [PATCH] Fixed tests output. --- .../parameter_handler_25.output | 12 ++++---- .../parameter_handler_25.output.std | 28 +++++++++++++++++++ .../parameter_handler/parameter_handler_28.cc | 2 +- .../parameter_handler_28.output | 3 +- 4 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 tests/parameter_handler/parameter_handler_25.output.std diff --git a/tests/parameter_handler/parameter_handler_25.output b/tests/parameter_handler/parameter_handler_25.output index 773966bd7c..469de72374 100644 --- a/tests/parameter_handler/parameter_handler_25.output +++ b/tests/parameter_handler/parameter_handler_25.output @@ -4,10 +4,10 @@ DEAL::successful DEAL:: -------------------------------------------------------- An error occurred in file in function - void dealii::ParameterHandler::set(const std::string &, const std::string &) -The violated condition was: + void dealii::ParameterHandler::set(const string&, const string&) +The violated condition was: false -Additional information: +Additional information: You can't ask for entry you have not yet declared. -------------------------------------------------------- @@ -15,10 +15,10 @@ DEAL:: -------------------------------------------------------- An error occurred in file in function void dealii::ParameterHandler::assert_that_entries_have_been_set() const -The violated condition was: +The violated condition was: entries_wrongly_not_set.size() == 0 -Additional information: - Not all entries of the parameter handler that were declared with `has_to_be_set = true` have been set. The following parameters +Additional information: + Not all entries of the parameter handler that were declared with `has_to_be_set = true` have been set. The following parameters General.Precision General.dim diff --git a/tests/parameter_handler/parameter_handler_25.output.std b/tests/parameter_handler/parameter_handler_25.output.std new file mode 100644 index 0000000000..773966bd7c --- /dev/null +++ b/tests/parameter_handler/parameter_handler_25.output.std @@ -0,0 +1,28 @@ + +DEAL:: +DEAL::successful +DEAL:: +-------------------------------------------------------- +An error occurred in file in function + void dealii::ParameterHandler::set(const std::string &, const std::string &) +The violated condition was: + false +Additional information: + You can't ask for entry you have not yet declared. +-------------------------------------------------------- + +DEAL:: +-------------------------------------------------------- +An error occurred in file in function + void dealii::ParameterHandler::assert_that_entries_have_been_set() const +The violated condition was: + entries_wrongly_not_set.size() == 0 +Additional information: + Not all entries of the parameter handler that were declared with `has_to_be_set = true` have been set. The following parameters + + General.Precision + General.dim + + have not been set. A possible reason might be that you did not add these parameter to the input file or that their spelling is not correct. +-------------------------------------------------------- + diff --git a/tests/parameter_handler/parameter_handler_28.cc b/tests/parameter_handler/parameter_handler_28.cc index 2972407453..85f06f00bc 100644 --- a/tests/parameter_handler/parameter_handler_28.cc +++ b/tests/parameter_handler/parameter_handler_28.cc @@ -25,7 +25,7 @@ int main() { - initlog(1); + initlog(); double a = 1.0; double b = 2.0; diff --git a/tests/parameter_handler/parameter_handler_28.output b/tests/parameter_handler/parameter_handler_28.output index d880f73f25..95b96fa393 100644 --- a/tests/parameter_handler/parameter_handler_28.output +++ b/tests/parameter_handler/parameter_handler_28.output @@ -15,7 +15,8 @@ DEAL::ShortJSON format: DEAL::======================================== { "A_20double": "1", - "Section_20two": { + "Section_20two": + { "Another_20double": "2" } } -- 2.39.5