mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[PowerRename] Set RegEx engine default flags to 0 (#15865)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user