Skip to content
Snippets Groups Projects
Commit 2383d387 authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Added tests for more instrument modes and tidied

parent 96a3086d
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ public: ...@@ -35,6 +35,7 @@ public:
ConfigService::Instance().appendDataSearchSubDir("ILL/IN4/"); ConfigService::Instance().appendDataSearchSubDir("ILL/IN4/");
ConfigService::Instance().appendDataSearchSubDir("ILL/IN5/"); ConfigService::Instance().appendDataSearchSubDir("ILL/IN5/");
ConfigService::Instance().appendDataSearchSubDir("ILL/IN6/"); ConfigService::Instance().appendDataSearchSubDir("ILL/IN6/");
ConfigService::Instance().appendDataSearchSubDir("ILL/IN16B/");
ConfigService::Instance().appendDataSearchSubDir("ILL/PANTHER/"); ConfigService::Instance().appendDataSearchSubDir("ILL/PANTHER/");
ConfigService::Instance().appendDataSearchSubDir("ILL/D17/"); ConfigService::Instance().appendDataSearchSubDir("ILL/D17/");
ConfigService::Instance().appendDataSearchSubDir("ILL/Figaro/"); ConfigService::Instance().appendDataSearchSubDir("ILL/Figaro/");
...@@ -52,97 +53,57 @@ public: ...@@ -52,97 +53,57 @@ public:
TS_ASSERT_EQUALS(alg.getPropertyValue("LoaderName"), resultLoader) TS_ASSERT_EQUALS(alg.getPropertyValue("LoaderName"), resultLoader)
} }
void test_LoadSANS_D11() { void test_LoadSANS_D11() { checkLoader("010560.nxs", "LoadILLSANS"); }
std::string filename = "010560.nxs";
std::string result = "LoadILLSANS";
checkLoader(filename, result);
}
void test_LoadSANS_D33() { void test_LoadSANS_D33() {
std::string filename = "002294.nxs"; checkLoader("002294.nxs", "LoadILLSANS");
std::string result = "LoadILLSANS"; checkLoader("042610.nxs", "LoadILLSANS"); // D33 TOF
checkLoader(filename, result);
} }
void test_LoadSANS_D22() { void test_LoadSANS_D22() { checkLoader("192068.nxs", "LoadILLSANS"); }
std::string filename = "192068.nxs";
std::string result = "LoadILLSANS";
checkLoader(filename, result);
}
void test_LoadDiffraction_D2B() { void test_LoadDiffraction_D2B() {
std::string filename = "535401.nxs"; checkLoader("535401.nxs", "LoadILLDiffraction");
std::string result = "LoadILLDiffraction";
checkLoader(filename, result);
} }
void test_LoadDiffraction_D20() { void test_LoadDiffraction_D20() {
std::string filename = "967100.nxs"; checkLoader("967076.nxs", "LoadILLDiffraction");
std::string result = "LoadILLDiffraction"; checkLoader("967087.nxs", "LoadILLDiffraction");
checkLoader(filename, result);
} }
void test_loadIndirect_IN16B() { void test_loadIndirect_IN16B() {
std::string filename = "ILLIN16B_127500.nxs"; checkLoader("090661.nxs", "LoadILLIndirect"); // one wing qens
std::string result = "LoadILLIndirect"; checkLoader("083072.nxs", "LoadILLIndirect"); // one wing efws
checkLoader("083073.nxs", "LoadILLIndirect"); // one wing ifws
checkLoader(filename, result); checkLoader("136558-136559", "LoadILLIndirect"); // two wings qens
checkLoader("143720.nxs", "LoadILLIndirect"); // two wings efws
checkLoader("170300.nxs", "LoadILLIndirect"); // two wings ifws
checkLoader("215962.nxs", "LoadILLIndirect"); // bats
} }
void test_loadTOF_IN4() { void test_loadTOF_IN4() { checkLoader("084446.nxs", "LoadILLTOF"); }
std::string filename = "084446.nxs";
std::string result = "LoadILLTOF";
checkLoader(filename, result);
}
void test_loadTOF_IN5() { void test_loadTOF_IN5() {
std::string filename = "104007.nxs"; checkLoader("104007.nxs", "LoadILLTOF");
std::string result = "LoadILLTOF"; checkLoader("189171.nxs", "LoadILLTOF");
checkLoader(filename, result);
filename = "189171.nxs";
checkLoader(filename, result);
} }
void test_loadTOF_IN6() { void test_loadTOF_IN6() {
std::string filename = "164192.nxs"; checkLoader("164192.nxs", "LoadILLTOF");
std::string result = "LoadILLTOF"; checkLoader("220010.nxs", "LoadILLTOF");
checkLoader(filename, result);
filename = "220010.nxs";
checkLoader(filename, result);
} }
void test_loadTOF_PANTHER() { void test_loadTOF_PANTHER() {
std::string filename = "001036.nxs"; checkLoader("001036.nxs", "LoadILLTOF");
std::string result = "LoadILLTOF"; checkLoader("001723.nxs", "LoadILLTOF");
checkLoader(filename, result);
filename = "001723.nxs";
checkLoader(filename, result);
} }
void test_loadReflectometry_D17() { void test_loadReflectometry_D17() {
std::string filename = "317370.nxs"; checkLoader("317370.nxs", "LoadILLReflectometry");
std::string result = "LoadILLReflectometry";
checkLoader(filename, result);
} }
void test_loadReflectometry_FIGARO() { void test_loadReflectometry_FIGARO() {
std::string filename = "000002.nxs"; checkLoader("000002.nxs", "LoadILLReflectometry");
std::string result = "LoadILLReflectometry";
checkLoader(filename, result);
} }
}; };
......
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