Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
10428607
Commit
10428607
authored
Nov 30, 2020
by
Steffen Schotthöfer
Browse files
added uni_tests
Former-commit-id:
532d3960
parent
78c7c44f
Changes
24
Hide whitespace changes
Inline
Side-by-side
code/tests/test_kernel.cpp
View file @
10428607
...
...
@@ -6,7 +6,7 @@
#include "quadratures/quadraturebase.h"
TEST_CASE
(
"test all scattering kernels"
,
"[kernel]"
)
{
std
::
string
filename
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_kernel.cfg"
;
std
::
string
filename
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_
tests/kernels/unit_
kernel.cfg"
;
// Load Settings from File
Config
*
config
=
new
Config
(
filename
);
...
...
code/tests/test_mesh.cpp
View file @
10428607
...
...
@@ -7,7 +7,7 @@
#include "common/mesh.h"
TEST_CASE
(
"unit mesh tests"
,
"[mesh]"
)
{
std
::
string
config_file_name
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_mesh.cfg"
;
std
::
string
config_file_name
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_
tests/common/unit_
mesh.cfg"
;
Config
*
config
=
new
Config
(
config_file_name
);
Mesh
*
mesh
=
LoadSU2MeshFromFile
(
config
);
...
...
code/tests/test_optimizer.cpp
View file @
10428607
...
...
@@ -7,7 +7,7 @@
#include "solvers/sphericalharmonics.h"
TEST_CASE
(
"Test the Newton Optimizer"
,
"[optimizers]"
)
{
std
::
string
filename
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_optimizerNewton.cfg"
;
std
::
string
filename
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_
tests/optimizers/unit_
optimizerNewton.cfg"
;
// Load Settings from File
Config
*
config
=
new
Config
(
filename
);
...
...
code/tests/test_quadrature.cpp
View file @
10428607
...
...
@@ -31,7 +31,7 @@ double f( double x, double y, double z ) {
double
sin
(
double
x
,
double
/*y*/
,
double
/*z*/
)
{
return
sin
(
x
);
}
TEST_CASE
(
"Quadrature Tests"
,
"[quadrature]"
)
{
std
::
string
filename
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_quadrature.cfg"
;
std
::
string
filename
=
std
::
string
(
TESTS_PATH
)
+
"input/unit_
tests/quadratures/unit_
quadrature.cfg"
;
// Load Settings from File
Config
*
config
=
new
Config
(
filename
);
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment