mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 14:13:30 -07:00
Fix START_LOOP, ASSERT_NEGATIVE_TESTCASES and ASSERT_POSITIVE_TESTCASES to test all items
This commit is contained in:
parent
67fa2286eb
commit
080e96c557
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ namespace CalculatorUnitTests
|
|||
#define ASSERT_POSITIVE_TESTCASES(func, dataSet) \
|
||||
{\
|
||||
int size = sizeof(dataSet)/sizeof(*dataSet);\
|
||||
while(--size)\
|
||||
while(--size >= 0)\
|
||||
{\
|
||||
VERIFY_ARE_EQUAL(func(dataSet[size]), dataSet[size]);\
|
||||
}\
|
||||
|
@ -35,7 +35,7 @@ namespace CalculatorUnitTests
|
|||
#define ASSERT_NEGATIVE_TESTCASES(func, dataSet) \
|
||||
{\
|
||||
int size = sizeof(dataSet)/sizeof(*dataSet);\
|
||||
while(--size)\
|
||||
while(--size >= 0)\
|
||||
{\
|
||||
VERIFY_ARE_EQUAL(func(dataSet[size]), StringReference(L"NoOp"));\
|
||||
}\
|
||||
|
@ -45,7 +45,7 @@ namespace CalculatorUnitTests
|
|||
#define START_LOOP(dataSet)\
|
||||
{\
|
||||
int size = sizeof(dataSet)/sizeof(*dataSet);\
|
||||
while(--size)\
|
||||
while(--size >= 0)\
|
||||
{
|
||||
|
||||
#define END_LOOP\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue