source: molecuilder/src/unittests/gslmatrixunittest.hpp@ 14c0f0

Last change on this file since 14c0f0 was e651e7, checked in by Frederik Heber <heber@…>, 16 years ago

Wrapper class for gsl_matrix along with working Unit test.

  • new class GSLMatrix wraps all useful functions of the GSL library.
  • new unit tests GSLMatrixSymmetricUnitTest (symmetric case) and GSLMatrixUnitTest tests each part and is working.

Signed-off-by: Frederik Heber <heber@…>

  • Property mode set to 100644
File size: 863 bytes
Line 
1/*
2 * gslmatrixunittest.hpp
3 *
4 * Created on: Jan 8, 2010
5 * Author: heber
6 */
7
8#ifndef GSLMATRIXUNITTEST_HPP_
9#define GSLMATRIXUNITTEST_HPP_
10
11#include <cppunit/extensions/HelperMacros.h>
12
13#include "gslmatrix.hpp"
14
15/********************************************** Test classes **************************************/
16
17class GSLMatrixTest : public CppUnit::TestFixture
18{
19 CPPUNIT_TEST_SUITE( GSLMatrixTest) ;
20 CPPUNIT_TEST (AccessTest );
21 CPPUNIT_TEST (InitializationTest );
22 CPPUNIT_TEST (CopyTest );
23 CPPUNIT_TEST (ExchangeTest );
24 CPPUNIT_TEST (PropertiesTest );
25 CPPUNIT_TEST_SUITE_END();
26
27public:
28 void setUp();
29 void tearDown();
30
31 void AccessTest();
32 void InitializationTest();
33 void CopyTest();
34 void ExchangeTest();
35 void PropertiesTest();
36
37private:
38 GSLMatrix *m;
39};
40
41
42#endif /* GSLMATRIXUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.