void constructors() { Vector<2, T> noParentheses; Vector<2, T> withScalarT(1); std::array<T, 2> arr; arr.fill(2); Vector<2, T> withArray(arr); Vector<2, T> assign; assign = arr; }
/* ****Test to assert the quality of the isValid() member of the IonoModel ****class. */ void xIonoModel :: validTest (void) { //Instantiate a blank almanac gpstk::EngAlmanac blankAlmanac; //Create an alpha and a beta array which define the Ionospheric model double a[4] = {1.,2.,3.,4.}; double b[4] = {4.,3.,2.,1.}; //Test to see if various IonoModel instantiations are valid gpstk::IonoModel noParam; gpstk::IonoModel withArray(a,b); gpstk::IonoModel wblankAlm(blankAlmanac); CPPUNIT_ASSERT(!noParam.isValid()); CPPUNIT_ASSERT(!wblankAlm.isValid()); CPPUNIT_ASSERT(withArray.isValid()); }