PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
main.cpp File Reference
#include <iostream>
#include "phoenix_assert.h"
#include "string_system.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void testRegExpr ()
 Test the is lower/upper case. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 22 of file main.cpp.

22  {
23  testRegExpr();
24  return 0;
25 }

References testRegExpr().

+ Here is the call graph for this function:

◆ testRegExpr()

void testRegExpr ( )

Test the is lower/upper case.

Definition at line 13 of file main.cpp.

13  {
15  phoenix_assert(isStringMatchRegex("agoihoicffEZEFjffz", "[:alpha:]"));
16  phoenix_assert(isStringMatchRegex("1092095235", "[0-9]"));
17  phoenix_assert(isStringMatchRegex("fjafzaofazofjaz", "[a-z]"));
18  phoenix_assert(isStringMatchRegex("EOJZEPFJGOEPGJPS", "[A-Z]"));
19  phoenix_assert(!isStringMatchRegex("1092095235", "[a-z]"));
20 }

References isStringMatchRegex(), and phoenix_assert.

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
isStringMatchRegex
bool isStringMatchRegex(const std::string &str, const std::string &expression)
Fonction qui dit si une chaine de caractère correspond à une expression régulière de regex.
Definition: string_system.cpp:94
testRegExpr
void testRegExpr()
Test the is lower/upper case.
Definition: main.cpp:13
phoenix_assert
#define phoenix_assert(isOk)
Definition: phoenix_assert.h:19