mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
[PowerRename] Set RegEx engine default flags to 0 (#15865)
This commit is contained in:
parent
567cc50fb7
commit
ddf96e28b8
@ -6,7 +6,7 @@
|
||||
|
||||
#include "PowerRenameInterfaces.h"
|
||||
|
||||
#define DEFAULT_FLAGS MatchAllOccurences
|
||||
#define DEFAULT_FLAGS 0
|
||||
|
||||
class CPowerRenameRegEx : public IPowerRenameRegEx
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "TestFileHelper.h"
|
||||
#include "Helpers.h"
|
||||
|
||||
#define DEFAULT_FLAGS MatchAllOccurences
|
||||
#define DEFAULT_FLAGS 0
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
|
@ -93,7 +93,7 @@ TEST_METHOD(VerifyDefaultFlags)
|
||||
Assert::IsTrue(CPowerRenameRegEx::s_CreateInstance(&renameRegEx) == S_OK);
|
||||
DWORD flags = 0;
|
||||
Assert::IsTrue(renameRegEx->GetFlags(&flags) == S_OK);
|
||||
Assert::IsTrue(flags == MatchAllOccurences);
|
||||
Assert::IsTrue(flags == 0);
|
||||
}
|
||||
|
||||
TEST_METHOD(VerifyCaseSensitiveSearch)
|
||||
|
@ -87,7 +87,7 @@ TEST_METHOD(VerifyDefaultFlags)
|
||||
Assert::IsTrue(CPowerRenameRegEx::s_CreateInstance(&renameRegEx) == S_OK);
|
||||
DWORD flags = 0;
|
||||
Assert::IsTrue(renameRegEx->GetFlags(&flags) == S_OK);
|
||||
Assert::IsTrue(flags == MatchAllOccurences);
|
||||
Assert::IsTrue(flags == 0);
|
||||
}
|
||||
|
||||
TEST_METHOD(VerifyCaseSensitiveSearch)
|
||||
|
Loading…
Reference in New Issue
Block a user