11 #ifndef TEST_BASE_VARIABLES_H_
12 #define TEST_BASE_VARIABLES_H_
18 #define ECKIT_TESTING_SELF_REGISTER_CASES 0
20 #include "eckit/config/LocalConfiguration.h"
21 #include "eckit/testing/Test.h"
35 const std::vector<std::string> varnames{
"bt",
"emiss"};
36 const std::vector<int> channels{1, 2, 3, 4};
37 std::unique_ptr<oops::Variables> other(
new oops::Variables(varnames, channels));
52 std::unique_ptr<oops::Variables> vars(
new oops::Variables(conf,
"test variables"));
78 EXPECT(vars.
size() == vars_check.size()+1);
80 for (std::size_t jvar = 0; jvar < vars_check.size(); ++jvar) {
81 EXPECT(vars[jvar] == vars_check[jvar]);
92 std::string
testid()
const override {
return "test::Variables";}
95 std::vector<eckit::testing::Test>& ts = eckit::testing::specification();
97 ts.emplace_back(
CASE(
"Variables/testConstructor")
99 ts.emplace_back(
CASE(
"Variables/testCopyConstructor")
101 ts.emplace_back(
CASE(
"Variables/testFortranInterface")
110 #endif // TEST_BASE_VARIABLES_H_