MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / TEST

Function TEST

Explorer++/TestExplorer++/StringHelperTest.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <tchar.h>
9
10TEST(CheckWildcardMatch, SimpleMatches)
11{
12 EXPECT_EQ(CheckWildcardMatch(_T("*.txt"), _T("Test.txt"), TRUE), TRUE);
13 EXPECT_EQ(CheckWildcardMatch(_T("?.txt"), _T("1.txt"), TRUE), TRUE);
14 EXPECT_EQ(CheckWildcardMatch(_T("?ab*cd.tx?"), _T("1abefghcd.txt"), TRUE), TRUE);
15 EXPECT_EQ(CheckWildcardMatch(_T("Test?1*txt"), _T("Test11test.txt"), TRUE), TRUE);
16}
17
18TEST(CheckWildcardMatch, UnicodeMatches)
19{

Callers

nothing calls this directly

Calls 8

CheckWildcardMatchFunction · 0.85
FormatSizeStringFunction · 0.85
PrintCommaFunction · 0.85
ReplaceCharacterFunction · 0.85
TrimStringLeftFunction · 0.85
TrimStringRightFunction · 0.85
TrimStringFunction · 0.85

Tested by

no test coverage detected