25 #ifndef WDATASETSINGLE_TEST_H
26 #define WDATASETSINGLE_TEST_H
31 #include <cxxtest/TestSuite.h>
33 #include "../WDataSetSingle.h"
34 #include "../WValueSet.h"
36 #include "../WGridRegular3D.h"
37 #include "../WDataHandlerEnums.h"
38 #include "../../common/WLogger.h"
58 boost::shared_ptr< std::vector< int8_t > > data = boost::shared_ptr< std::vector< int8_t > >(
new std::vector< int8_t >( 1, 1 ) );
75 boost::shared_ptr< std::vector< double > > data = boost::shared_ptr< std::vector< double > >(
new std::vector< double >( 1, 3.1415 ) );
76 boost::shared_ptr< WValueSet< double > > other;
77 other = boost::shared_ptr< WValueSet< double > >(
new WValueSet< double >( 0, 1, data, W_DT_DOUBLE ) );
80 TS_ASSERT_DIFFERS( dataSetSingle.
getValueSet(), other );
88 boost::shared_ptr< WGrid > other = boost::shared_ptr< WGridRegular3D >(
new WGridRegular3D( 1, 1, 1 ) );
90 TS_ASSERT_EQUALS( dataSetSingle.getGrid(),
gridDummy );
91 TS_ASSERT_DIFFERS( dataSetSingle.getGrid(), other );
94 #endif // WDATASETSINGLE_TEST_H