GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/TESTS/TEST_REGEXPR/main.cpp Lines: 13 13 100.0 %
Date: 2023-10-11 10:52:07 Branches: 18 18 100.0 %

Line Branch Exec Source
1
2
/***************************************
3
	Auteur : Pierre Aubert
4
	Mail : pierre.aubert@lapp.in2p3.fr
5
	Licence : CeCILL-C
6
****************************************/
7
8
#include <iostream>
9
#include "string_system.h"
10
11
12
///Test the is lower/upper case
13
/**	@return true on success, false otherwise
14
*/
15
1
bool testRegExpr(){
16
1
	bool b(true);
17
18
1
	b &= !isStringMatchRegex("", "");
19
1
	b &= isStringMatchRegex("agoihoicffEZEFjffz", "[:alpha:]");
20
1
	b &= isStringMatchRegex("1092095235", "[0-9]");
21
22
1
	b &= isStringMatchRegex("fjafzaofazofjaz", "[a-z]");
23
1
	b &= isStringMatchRegex("EOJZEPFJGOEPGJPS", "[A-Z]");
24
1
	b &= !isStringMatchRegex("1092095235", "[a-z]");
25
26
1
	return b;
27
}
28
29
1
int main(int argc, char** argv){
30
1
	bool b(true);
31
1
	b &= testRegExpr();
32
33
1
	return b - 1;
34
}
35
36