Updating code to append a wchar_t instead of const wchar_t (#778)

This commit is contained in:
Scott Freeman
2019-11-11 12:23:34 -05:00
committed by Matt Cooley
parent 4c81ed83c7
commit 01299a92cd
8 changed files with 27 additions and 30 deletions

View File

@@ -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;

View File

@@ -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),