PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
main.cpp
Go to the documentation of this file.
1
2
/***************************************
3
Auteur : Pierre Aubert
4
Mail : pierre.aubert@lapp.in2p3.fr
5
Licence : CeCILL-C
6
****************************************/
7
8
#include <iostream>
9
#include "
phoenix_assert.h
"
10
#include "
string_system.h
"
11
13
void
testRegExpr
(){
14
phoenix_assert
(!
isStringMatchRegex
(
""
,
""
));
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
}
21
22
int
main
(
int
argc,
char
** argv){
23
testRegExpr
();
24
return
0;
25
}
26
27
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
string_system.h
phoenix_assert.h
main
int main(int argc, char **argv)
Definition:
main.cpp:85
tmp_project
StringUtils
TESTS
TEST_REGEXPR
main.cpp
Generated on Mon Dec 9 2024 15:33:41 for PhoenixMock by
1.8.17