Line data Source code
1 : /** 2 : * @file test_WLSSubsetProblem.cpp 3 : * 4 : * @brief Tests for the WLSSubsetProblem class 5 : * 6 : * @author Michael Loipführer - initial code 7 : */ 8 : 9 : #include "doctest/doctest.h" 10 : 11 : #include "Logger.h" 12 : 13 : using namespace elsa; 14 : using namespace doctest; 15 : 16 : TEST_SUITE_BEGIN("problems"); 17 : 18 : TEST_CASE_TEMPLATE("WLSSubsetProblem: Empty Test", data_t, float, double) 19 2 : { 20 : // eliminate the timing info from console for the tests 21 2 : Logger::setLevel(Logger::LogLevel::WARN); 22 : 23 2 : GIVEN("a WLS Problem with 2 subsets") 24 2 : { 25 : // TODO: implement actual minimal tests 26 : // This is quite hard as the default operators (Identity, Scaling) do not allow for 27 : // their domain descriptor to differ from their range descriptor and therefore cant be 28 : // split up into subsets. Tests using the Phantom generator, an actual projector and a 29 : // SubsetSampler would work but require a whole bunch of other components. 30 2 : } 31 2 : } 32 : 33 : TEST_SUITE_END();