25 #ifndef WDATASETFIBERVECTOR_TEST_H
26 #define WDATASETFIBERVECTOR_TEST_H
31 #include <boost/shared_ptr.hpp>
33 #include <cxxtest/TestSuite.h>
35 #include "../WDataSetFiberVector.h"
36 #include "../../common/math/linearAlgebra/WPosition.h"
50 m_somefibs = boost::shared_ptr< vector< WFiber > >(
new vector< WFiber > );
51 vector< WPosition > points;
52 points.push_back(
WPosition( 0., 0., 1. ) );
54 points.push_back(
WPosition( 0., 0., 2. ) );
56 points.push_back(
WPosition( 0., 0., 3. ) );
65 std::vector< WPosition > points;
66 points.push_back(
WPosition( 0., 0., 1. ) );
67 points.push_back(
WPosition( 0., 0., 2. ) );
68 points.push_back(
WPosition( 0., 0., 3. ) );
71 TS_ASSERT_EQUALS( d[2], expected );
77 #endif // WDATASETFIBERVECTOR_TEST_H
Represents a neural pathway.
Unit tests our fiber dataset class.
boost::shared_ptr< std::vector< WFiber > > m_somefibs
Default fiber dataset.
void testBasicAccessAndCreation(void)
With a vector of WFiber a valid DataSetFibers should be possible.
This only is a 3d double vector.
Represents a simple set of WFibers.
void setUp(void)
Generates the test evironment.