11 #ifndef TEST_INTERFACE_OBSERVATIONSPACE_H_ 12 #define TEST_INTERFACE_OBSERVATIONSPACE_H_ 16 #define BOOST_TEST_NO_MAIN 17 #define BOOST_TEST_ALTERNATIVE_INIT_API 18 #define BOOST_TEST_DYN_LINK 19 #include <boost/test/unit_test.hpp> 21 #include <boost/noncopyable.hpp> 22 #include <boost/scoped_ptr.hpp> 24 #include "eckit/config/LocalConfiguration.h" 35 typedef ObsTestsFixture<MODEL> Test_;
37 for (std::size_t jj = 0; jj < Test_::obspace().size(); ++jj) {
38 BOOST_CHECK_EQUAL(Test_::obspace()[jj].windowStart(), Test_::tbgn());
39 BOOST_CHECK_EQUAL(Test_::obspace()[jj].windowEnd(), Test_::tend());
53 boost::unit_test::test_suite * ts = BOOST_TEST_SUITE(
"interface/ObservationSpace");
55 ts->add(BOOST_TEST_CASE(&testConstructor<MODEL>));
57 boost::unit_test::framework::master_test_suite().add(ts);
65 #endif // TEST_INTERFACE_OBSERVATIONSPACE_H_ std::string testid() const
void register_tests() const
virtual ~ObservationSpace()