Skip to content
Snippets Groups Projects
Commit 7bf6bf89 authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #21256. Fix test method names

parent d3384340
No related branches found
No related tags found
No related merge requests found
...@@ -749,14 +749,14 @@ public: ...@@ -749,14 +749,14 @@ public:
} }
void test_name() { void test_name() {
auto infos = makeFlat(PosVec(1), RotVec(1)); auto infos = makeFlatTree(PosVec(1), RotVec(1));
ComponentInfo &compInfo = *std::get<0>(infos); ComponentInfo &compInfo = *std::get<0>(infos);
TS_ASSERT_EQUALS(compInfo.name(compInfo.root()), "root"); TS_ASSERT_EQUALS(compInfo.name(compInfo.root()), "root");
TS_ASSERT_EQUALS(compInfo.name(0), "det0"); TS_ASSERT_EQUALS(compInfo.name(0), "det0");
} }
void test_indexOf_name_throws_when_name_invalid() { void test_indexOf_name_throws_when_name_invalid() {
auto infos = makeFlat(PosVec(1), RotVec(1)); auto infos = makeFlatTree(PosVec(1), RotVec(1));
ComponentInfo &compInfo = *std::get<0>(infos); ComponentInfo &compInfo = *std::get<0>(infos);
TSM_ASSERT_THROWS("Should throw, this name does not exist", TSM_ASSERT_THROWS("Should throw, this name does not exist",
compInfo.indexOf("phantom"), std::invalid_argument &) compInfo.indexOf("phantom"), std::invalid_argument &)
...@@ -766,7 +766,7 @@ public: ...@@ -766,7 +766,7 @@ public:
} }
void test_indexOf() { void test_indexOf() {
auto infos = makeFlat(PosVec(1), RotVec(1)); auto infos = makeFlatTree(PosVec(1), RotVec(1));
ComponentInfo &compInfo = *std::get<0>(infos); ComponentInfo &compInfo = *std::get<0>(infos);
TS_ASSERT_EQUALS(compInfo.indexOf("det0"), 0); TS_ASSERT_EQUALS(compInfo.indexOf("det0"), 0);
TS_ASSERT_EQUALS(compInfo.indexOf("root"), compInfo.root()); TS_ASSERT_EQUALS(compInfo.indexOf("root"), compInfo.root());
......
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