Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions | Variables
0.valcmp.cpp File Reference
#include <rw_valcmp.h>
#include <stdio.h>
Include dependency graph for 0.valcmp.cpp:

Go to the source code of this file.

Data Structures

struct  Case
 

Macros

#define CASE(expect, str1, str2, nelems, flags)    { __LINE__, expect, str1, str2, nelems, flags }
 
#define STR(x)   #x
 
#define TEST_ALL_CASES(U)   test_all_cases ((T*)0, (U*)0, tname, STR (U))
 
#define RUN_TEST(T)   run_test ((T*)0, STR (T))
 

Functions

template<class T , class U >
void test_case (const T *, const U *, const char *tname, const char *uname, int line, int expect, const char *str1, const char *str2, size_t nelems, int flags)
 
template<class T , class U >
void test_all_cases (const T *, const U *, const char *tname, const char *uname)
 
template<class T >
void run_test (const T *, const char *tname)
 
int main ()
 

Variables

const Case cases []
 

Macro Definition Documentation

◆ CASE

#define CASE (   expect,
  str1,
  str2,
  nelems,
  flags 
)     { __LINE__, expect, str1, str2, nelems, flags }

◆ RUN_TEST

#define RUN_TEST (   T)    run_test ((T*)0, STR (T))

◆ STR

#define STR (   x)    #x

Definition at line 242 of file 0.valcmp.cpp.

◆ TEST_ALL_CASES

#define TEST_ALL_CASES (   U)    test_all_cases ((T*)0, (U*)0, tname, STR (U))

Function Documentation

◆ main()

int main ( void  )

Definition at line 278 of file 0.valcmp.cpp.

◆ run_test()

template<class T >
void run_test ( const T *  ,
const char *  tname 
)

Definition at line 247 of file 0.valcmp.cpp.

◆ test_all_cases()

template<class T , class U >
void test_all_cases ( const T *  ,
const U *  ,
const char *  tname,
const char *  uname 
)

Definition at line 219 of file 0.valcmp.cpp.

◆ test_case()

template<class T , class U >
void test_case ( const T *  ,
const U *  ,
const char *  tname,
const char *  uname,
int  line,
int  expect,
const char *  str1,
const char *  str2,
size_t  nelems,
int  flags 
)

Definition at line 41 of file 0.valcmp.cpp.

Variable Documentation

◆ cases

const Case cases[]
extern