String routines to complement <string> && <cstring>:
Classes | Macros | Functions
strnum_test.cpp File Reference

Test program for strnum.cpp. More...

#include "strnum.h"
#include "uUnit.h"
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  N_vec< DIM >
 
struct  N_vecU
 
class  cc_val_cc< N >
 

Macros

#define exec_TEST(t)   void t(); t();
 
#define eqstr(a, b)   ( 0==strcmp(a,b) )
 Shortcut macro to compare 2 C strings using strcmp() More...
 
#define PRIuMAX   "I64u"
 

Functions

int main (const int argc, const char *argv[])
 Test program. More...
 
void test_atou_ndigit ()
 test->atou_ndigit(). More...
 
void test_atoi_vec ()
 test -> atoi_vec() More...
 
void test_atou_vec ()
 test -> atou_vec() More...
 
void test_atouint ()
 test->atouint(). More...
 
void test_utoa_sz ()
 test->utoa_sz() More...
 
void cc_test_cc ()
 
void test_insnsep_Rupee ()
 
void test_insnsep_date8 ()
 
void test_insnsep ()
 
void test_PRIuMAX ()
 test->PRIuMAX(). More...
 

Detailed Description

Test program for strnum.cpp.

Author
adolf.nosp@m.o.di.nosp@m.mare@.nosp@m.gmai.nosp@m.l.com
eduar.nosp@m.do.j.nosp@m..piza.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Date
2019

Definition in file strnum_test.cpp.

Macro Definition Documentation

◆ exec_TEST

#define exec_TEST (   t)    void t(); t();

◆ eqstr

#define eqstr (   a,
 
)    ( 0==strcmp(a,b) )

Shortcut macro to compare 2 C strings using strcmp()

Definition at line 40 of file strnum_test.cpp.

◆ PRIuMAX

#define PRIuMAX   "I64u"

Function Documentation

◆ main()

int main ( const int  argc,
const char *  argv[] 
)

Test program.

Simple macro to define && execute a test

Definition at line 17 of file strnum_test.cpp.

◆ test_atou_ndigit()

void test_atou_ndigit ( )

test->atou_ndigit().

Definition at line 43 of file strnum_test.cpp.

◆ test_atoi_vec()

void test_atoi_vec ( )

test -> atoi_vec()

Definition at line 116 of file strnum_test.cpp.

◆ test_atou_vec()

void test_atou_vec ( )

test -> atou_vec()

Definition at line 245 of file strnum_test.cpp.

◆ test_atouint()

void test_atouint ( )

test->atouint().

Definition at line 361 of file strnum_test.cpp.

◆ test_utoa_sz()

void test_utoa_sz ( )

test->utoa_sz()

Definition at line 375 of file strnum_test.cpp.

◆ cc_test_cc()

void cc_test_cc ( )

Definition at line 447 of file strnum_test.cpp.

◆ test_insnsep_Rupee()

void test_insnsep_Rupee ( )

Definition at line 501 of file strnum_test.cpp.

◆ test_insnsep_date8()

void test_insnsep_date8 ( )

Definition at line 534 of file strnum_test.cpp.

◆ test_insnsep()

void test_insnsep ( )

Definition at line 553 of file strnum_test.cpp.

◆ test_PRIuMAX()

void test_PRIuMAX ( )

test->PRIuMAX().

Definition at line 790 of file strnum_test.cpp.