From 2a53f0313182692fd4f06a4e65e5eca203217e5c Mon Sep 17 00:00:00 2001 From: greedyAI Date: Wed, 6 Jan 2021 21:08:36 -0800 Subject: [PATCH] Update HistoryTests.cpp --- src/CalculatorUnitTests/HistoryTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CalculatorUnitTests/HistoryTests.cpp b/src/CalculatorUnitTests/HistoryTests.cpp index 22d518ef..5dc2c81b 100644 --- a/src/CalculatorUnitTests/HistoryTests.cpp +++ b/src/CalculatorUnitTests/HistoryTests.cpp @@ -422,9 +422,9 @@ namespace CalculatorFunctionalTests } int sizeAfterCommandsAdd = m_historyViewModel->ItemsCount; VERIFY_ARE_EQUAL(initialSize + numResults, sizeAfterCommandsAdd); - auto historyItem = static_cast(m_historyViewModel->Items->GetAt(2)); - VERIFY_ARE_EQUAL(historyItem->Expression, expectedExpressions[2]); - VERIFY_ARE_EQUAL(historyItem->Result, expectedResults[2]); + auto historyItem = static_cast(m_historyViewModel->Items->GetAt(3)); + VERIFY_ARE_EQUAL(historyItem->Expression, expectedExpressions[3]); + VERIFY_ARE_EQUAL(historyItem->Result, expectedResults[3]); //for (int i = 0; i < numResults; i++) //{ // auto historyItem = static_cast(m_historyViewModel->Items->GetAt(i));