sample_test.hpp
Go to the documentation of this file.
1 // Copyright (C) 2007 Klaas Gadeyne <first dot last at gmail dot com>
2 //
3 // This program is free software; you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation; either version 2 of the License, or
6 // (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 //
17 
18 #ifndef SAMPLE_TEST_HPP
19 #define SAMPLE_TEST_HPP
20 
21 #include <cppunit/extensions/HelperMacros.h>
22 #include <sample/sample.h>
23 #include <sample/weightedsample.h>
24 #include <string>
25 
26 using namespace std;
27 using namespace BFL;
28 using namespace MatrixWrapper;
29 
30 class SampleTest : public CppUnit::TestFixture
31 {
32  CPPUNIT_TEST_SUITE( SampleTest );
33  CPPUNIT_TEST( testSampleValue );
34  CPPUNIT_TEST( testSampleDimension );
35  CPPUNIT_TEST( testWeightedSample );
36  CPPUNIT_TEST_SUITE_END();
37 
38  ColumnVector a;
43 
46 
47 public:
48  void setUp();
49  void tearDown();
50 
51  void testSampleValue();
52  void testSampleDimension();
53  void testWeightedSample();
54 
55 };
56 
57 #endif // SAMPLE_TEST_HPP
ColumnVector a
Definition: sample_test.hpp:38
Sample< double > a_sample_double
Definition: sample_test.hpp:42
Sample< ColumnVector > b_sample_cv
Definition: sample_test.hpp:40
Sample< int > a_sample_int
Definition: sample_test.hpp:41
Sample< ColumnVector > a_sample_cv
Definition: sample_test.hpp:39
WeightedSample< ColumnVector > a_weighted_sample_cv
Definition: sample_test.hpp:44
WeightedSample< ColumnVector > b_weighted_sample_cv
Definition: sample_test.hpp:45


bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Jun 10 2019 12:47:59