Skip to content
Snippets Groups Projects
Commit dd09a685 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[test.functions_expression] add some tests

parent 262c8b16
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,12 @@
\
void check() const \
{ \
const std::unique_ptr<const LocalizableFunctionType> function( \
LocalizableFunctionType::create(LocalizableFunctionType::default_config())); \
Dune::Stuff::Common::Configuration config = LocalizableFunctionType::default_config(); \
const std::unique_ptr<const LocalizableFunctionType> function(LocalizableFunctionType::create(config)); \
config["expression"] = "[2*x[0] 2*x[1] 2*x[2]]"; \
config["gradient"] = "[2 0 0; 0 2 0; 0 0 2]"; \
const std::unique_ptr<const LocalizableFunctionType> function2(LocalizableFunctionType::create(config)); \
const LocalizableFunctionType function3("x", {"x[0]", "x[0]", "x[0]"}); \
} \
};
// TEST_STRUCT_GENERATOR
......
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