8 #ifndef TEST_ASSIMILATION_TESTVECTOR3D_H_
9 #define TEST_ASSIMILATION_TESTVECTOR3D_H_
14 #include "eckit/testing/Test.h"
18 #include "oops/util/Expect.h"
32 EXPECT(vEq.
x() == 1.0 && vEq.
y() == 2.0 && vEq.
z() == 3.0);
35 EXPECT(vCopy.
x() == 1.0 && vCopy.
y() == 2.0 && vCopy.
z() == 3.0);
39 EXPECT(vAdd.
x() == 5.0 && vAdd.
y() == 7.0 && vAdd.
z() == 9.0);
43 EXPECT(vSub.
x() == 3.0 && vSub.
y() == 3.0 && vSub.
z() == 3.0);
47 EXPECT(vMult.
x() == 2.0 && vMult.
y() == 4.0 && vMult.
z() == 6.0);
51 EXPECT(vMultV.
x() == 4.0 && vMultV.
y() == 10.0 && vMultV.
z() == 18.0);
55 EXPECT(vDivV.
x() == 4.0 && vDivV.
y() == 2.5 && vDivV.
z() == 2.0);
59 EXPECT(vAxpy.
x() == 13.0 && vAxpy.
y() == 17.0 && vAxpy.
z() == 21.0);
62 EXPECT(dotprod == 32.0);
65 CASE(
"assimilation/TestVector3D/Vector3D") {
71 std::string
testid()
const override {
return "test::TestVector3D";}
void register_tests() const override
std::string testid() const override
void clear() const override
double dot_product_with(const Vector3D &) const
void axpy(const double, const Vector3D &)
x -> x + mult * rhs
CASE("test_linearmodelparameterswrapper_valid_name")