# | Line 36 | Line 36 | void Vector3TestCase::testConstructors(){ | |
---|---|---|
36 | } | |
37 | ||
38 | void Vector3TestCase::testConstructors(){ | |
39 | + | double b[] = {2.9, 3.2, 1.2}; |
40 | + | Vector3d v(b); |
41 | + | CPPUNIT_ASSERT_DOUBLES_EQUAL(v.x(), 2.9, oopse::epsilon); |
42 | + | CPPUNIT_ASSERT_DOUBLES_EQUAL(v.y(), 3.2, oopse::epsilon); |
43 | + | CPPUNIT_ASSERT_DOUBLES_EQUAL(v.z(), 1.2, oopse::epsilon); |
44 | } | |
45 | ||
46 | void Vector3TestCase::testArithmetic(){ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |