Updating code to append a wchar_t instead of const wchar_t (#778)
This commit is contained in:
committed by
Matt Cooley
parent
4c81ed83c7
commit
01299a92cd
@@ -309,7 +309,7 @@ namespace CalculatorEngineTests
|
||||
wstring maxStr{};
|
||||
for (size_t i = 0; i < MAX_STRLEN + 1; i++)
|
||||
{
|
||||
maxStr += L"1";
|
||||
maxStr += L'1';
|
||||
m_calcInput.TryAddDigit(1, 10, false, maxStr, 64, 100);
|
||||
}
|
||||
auto result = m_calcInput.ToString(10);
|
||||
@@ -323,7 +323,7 @@ namespace CalculatorEngineTests
|
||||
bool exponentCapped = false;
|
||||
for (size_t i = 0; i < MAX_STRLEN + 1; i++)
|
||||
{
|
||||
maxStr += L"1";
|
||||
maxStr += L'1';
|
||||
if (!m_calcInput.TryAddDigit(1, 10, false, maxStr, 64, MAX_STRLEN + 25))
|
||||
{
|
||||
exponentCapped = true;
|
||||
|
@@ -67,7 +67,7 @@ namespace CalculatorUnitTests
|
||||
StringReference(exp_TooLong.c_str()), ViewMode::Standard, CategoryGroupType::Calculator, -1, BitLength::BitLengthUnknown),
|
||||
StringReference(exp_TooLong.c_str()),
|
||||
L"Verify ValidatePasteExpression handles expressions up to max length");
|
||||
exp_TooLong += L"1";
|
||||
exp_TooLong += L'1';
|
||||
VERIFY_ARE_EQUAL(
|
||||
m_CopyPasteManager->ValidatePasteExpression(
|
||||
StringReference(exp_TooLong.c_str()), ViewMode::Standard, CategoryGroupType::Calculator, -1, BitLength::BitLengthUnknown),
|
||||
|
Reference in New Issue
Block a user