vec_test.cc File Reference

#include <TooN/TooN.h>
#include <string>
Include dependency graph for vec_test.cc:

Go to the source code of this file.

Classes

class  no_duplicates< A, A >::IgnoreMe
struct  no_duplicates< A, B >
struct  no_duplicates< A, A >
struct  TooN::Internal::NoError

Namespaces

namespace  TooN
 

Everything lives inside this namespace.


namespace  TooN::Internal

Defines

#define EXPECT(X)
#define EXPECT_CATCH(X, Y)
#define test_comma(...)   test_comma_(__LINE__, __VA_ARGS__)
#define test_dynamic_slices(...)   test_dynamic_slices_(__LINE__, __VA_ARGS__)
#define test_index(...)   test_index_(__LINE__, __VA_ARGS__)
#define test_static_dynamic_slices(...)   test_static_dynamic_slices_(__LINE__ , __VA_ARGS__)
#define test_static_static_slices(...)   test_static_static_slices_(__LINE__ , __VA_ARGS__)
#define TOON_TEST_INTERNALS
#define TRY   lineno = __LINE__; try{

Functions

int main ()
template<class C >
void test_comma_ (int func_lineno)
template<class C >
void test_dynamic_slices_ (int func_lineno, C v)
template<class C >
void test_index_ (int func_lineno, C v)
template<class C >
void test_static_dynamic_slices_ (int func_lineno, C v)
template<class C >
void test_static_static_slices_ (int func_lineno, C v)

Variables

int lineno

Define Documentation

#define EXPECT (  ) 
Value:
throw TooN::Internal::NoError();\
}\
catch(TooN::Internal::X e)\
{\
    cerr << "Test OK on line " << lineno << " from " << func_lineno << endl;\
}\
EXPECT_CATCH(X, BadIndex)\
EXPECT_CATCH(X, SliceError)\
EXPECT_CATCH(X, StaticSliceError)\
EXPECT_CATCH(X, SizeMismatch)\
EXPECT_CATCH(X, StaticSizeMismatch)\
EXPECT_CATCH(X, NoError)

Definition at line 33 of file vec_test.cc.

#define EXPECT_CATCH ( X,
 ) 
Value:
catch(no_duplicates<TooN::Internal::X, TooN::Internal::Y>::type e)\
{\
    cerr << "Test FAILED on line " << lineno << " from " << func_lineno << ". Expected " << #X << ", got " << #Y << "." << endl;\
}\

Definition at line 27 of file vec_test.cc.

#define test_comma ( ...   )     test_comma_(__LINE__, __VA_ARGS__)

Definition at line 153 of file vec_test.cc.

#define test_dynamic_slices ( ...   )     test_dynamic_slices_(__LINE__, __VA_ARGS__)

Definition at line 97 of file vec_test.cc.

#define test_index ( ...   )     test_index_(__LINE__, __VA_ARGS__)

Definition at line 122 of file vec_test.cc.

#define test_static_dynamic_slices ( ...   )     test_static_dynamic_slices_(__LINE__ , __VA_ARGS__)

Definition at line 72 of file vec_test.cc.

#define test_static_static_slices ( ...   )     test_static_static_slices_(__LINE__ , __VA_ARGS__)

Definition at line 47 of file vec_test.cc.

#define TOON_TEST_INTERNALS

Definition at line 1 of file vec_test.cc.

#define TRY   lineno = __LINE__; try{

Definition at line 25 of file vec_test.cc.


Function Documentation

int main (  ) 

Definition at line 195 of file vec_test.cc.

template<class C >
void test_comma_ ( int  func_lineno  )  [inline]

Definition at line 154 of file vec_test.cc.

template<class C >
void test_dynamic_slices_ ( int  func_lineno,
v 
) [inline]

Definition at line 98 of file vec_test.cc.

template<class C >
void test_index_ ( int  func_lineno,
v 
) [inline]

Definition at line 123 of file vec_test.cc.

template<class C >
void test_static_dynamic_slices_ ( int  func_lineno,
v 
) [inline]

Definition at line 73 of file vec_test.cc.

template<class C >
void test_static_static_slices_ ( int  func_lineno,
v 
) [inline]

Definition at line 48 of file vec_test.cc.


Variable Documentation

int lineno

Definition at line 8 of file vec_test.cc.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines


libtoon
Author(s): Florian Weisshardt
autogenerated on Fri Jan 11 10:09:41 2013