Skip to content

Commit b4236f3

Browse files
committed
Path adjustments
1 parent b24b695 commit b4236f3

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/Core/Algorithms/FiniteElements/Tests/BuildFEMatrixTests.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2626
DEALINGS IN THE SOFTWARE.
2727
*/
28-
28+
2929
#include <Testing/Utils/SCIRunUnitTests.h>
3030
#include <Core/Datatypes/Legacy/Field/VField.h>
3131
#include <Core/Datatypes/Legacy/Field/FieldInformation.h>
@@ -47,19 +47,19 @@ using ::testing::NotNull;
4747

4848
namespace FEInputData
4949
{
50-
boost::filesystem::path feMeshRoot()
50+
boost::filesystem::path feMeshRoot()
5151
{
52-
return TestResources::rootDir() / "buildFE" / "inputFields";
52+
return TestResources::rootDir() / "Fields" / "buildFE" / "inputFields";
5353
}
5454

5555
FieldHandle loadTestMesh(const std::string& file)
5656
{
5757
return loadFieldFromFile(feMeshRoot() / file);
5858
}
59-
60-
boost::filesystem::path expectedOutputRoot()
59+
60+
boost::filesystem::path expectedOutputRoot()
6161
{
62-
return TestResources::rootDir() / "buildFE" / "v4Output";
62+
return TestResources::rootDir() / "Matrices" / "buildFE" / "v4Output";
6363
}
6464

6565
SparseRowMatrixHandle expectedOutput(const std::string& file)
@@ -100,7 +100,7 @@ TEST(BuildFEMatrixAlgorithmTests, TestMeshSize1e1)
100100

101101
EXPECT_EQ(7, output->nrows());
102102
EXPECT_EQ(7, output->ncols());
103-
103+
104104
EXPECT_DOUBLE_EQ(0.5855738571534416, output->coeff(0,0));
105105
EXPECT_DOUBLE_EQ(0.3117198873128934, output->coeff(output->nrows() - 1, output->ncols() - 1));
106106

@@ -197,4 +197,4 @@ TEST(BuildFEMatrixAlgorithmTests, TestMeshSize1e6)
197197
EXPECT_DOUBLE_EQ(0.066666666666666666, output->coeff(output->nrows() - 1, output->ncols() - 1));
198198

199199
EXPECT_TRUE(compare_with_tolerance(*expectedOutput("1e6.mat"), *output));
200-
}
200+
}

src/Core/Algorithms/FiniteElements/Tests/BuildTDCSMatrixTests.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2626
DEALINGS IN THE SOFTWARE.
2727
*/
28-
28+
2929
#include <Testing/Utils/SCIRunUnitTests.h>
3030
#include <Core/Datatypes/Legacy/Field/VField.h>
3131
#include <Core/Datatypes/Legacy/Field/FieldInformation.h>
@@ -52,44 +52,44 @@ namespace TDCSInputData
5252
(0,0,0)
5353
(0,2,0));
5454
}
55-
55+
5656
FieldHandle mesh()
5757
{
58-
return loadFieldFromFile(TestResources::rootDir() / "mesh_scirun5.fld");
58+
return loadFieldFromFile(TestResources::rootDir() / "Fields" / "mesh_scirun5.fld");
5959
}
60-
60+
6161
DenseMatrixHandle ElectrodeElements()
6262
{
6363
/// @todo: MORITZ insert values as above.
6464
return MAKE_DENSE_MATRIX_HANDLE(
6565
(1,0)
6666
(0,1));
6767
}
68-
68+
6969
DenseMatrixHandle ElectrodeElementType()
7070
{
7171
/// @todo: MORITZ insert values as above.
7272
return MAKE_DENSE_MATRIX_HANDLE(
7373
(1,0)
7474
(0,1));
7575
}
76-
76+
7777
DenseMatrixHandle ElectrodeElementDefinition()
7878
{
7979
/// @todo: MORITZ insert values as above.
8080
return MAKE_DENSE_MATRIX_HANDLE(
8181
(1,0)
8282
(0,1));
8383
}
84-
84+
8585
DenseMatrixHandle contactimpedance()
8686
{
8787
/// @todo: MORITZ insert values as above.
8888
return MAKE_DENSE_MATRIX_HANDLE(
8989
(1,0)
9090
(0,1));
9191
}
92-
92+
9393
SparseRowMatrixHandle expectedOutput()
9494
{
9595
/// @todo: MORITZ insert values as above.
@@ -143,5 +143,5 @@ TEST(BuildTDCSMatrixAlgorithmTests, ThrowsForNullElectrodeElements)
143143
// etc for checks lines 567-575
144144
// cover as many error cases with tests as you can, there are a lot in TDCSMatrixBuilder::singlethread() but there may be reasonable conceptual groupings to simplify the test code (may also lead to simplifying/refactoring the algorithm code
145145

146-
/// @todo next:
147-
//TEST(BuildTDCSMatrixAlgorithmTests, SuccessfulRunTest) //here's where you pass in the real matrices/fields above and compare the output to an expected matrix.
146+
/// @todo next:
147+
//TEST(BuildTDCSMatrixAlgorithmTests, SuccessfulRunTest) //here's where you pass in the real matrices/fields above and compare the output to an expected matrix.

0 commit comments

Comments
 (0)