Fixed indentation
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define SourceStringSize 257 // test correct page passing (>256)
|
||||
|
||||
static char SourceString[SourceStringSize+1]; // +1 room for terminating null
|
||||
static char SourceString[SourceStringSize+1]; // +1 room for terminating null
|
||||
static char DestinationString[2*SourceStringSize+1]; // will contain two times the source buffer
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ TEST
|
||||
unsigned position = j*SourceStringSize+i;
|
||||
unsigned current = DestinationString[position];
|
||||
unsigned expected = (i%128)+1;
|
||||
ASSERT_AreEqual(expected, current, "%u", "Unexpected destination buffer contents at position %u!\n" COMMA position);
|
||||
ASSERT_AreEqual(expected, current, "%u", "Unexpected destination buffer contents at position %u!\n" COMMA position);
|
||||
}
|
||||
}
|
||||
ENDTEST
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <unittest.h>
|
||||
#include <string.h>
|
||||
|
||||
static char TestString[] = "01234567890123456789"; // two times the same string
|
||||
static char TestString[] = "01234567890123456789"; // two times the same string
|
||||
static char Found[256];
|
||||
|
||||
TEST
|
||||
@@ -10,7 +10,7 @@ TEST
|
||||
unsigned i;
|
||||
char* p;
|
||||
|
||||
len = strlen(TestString)/2; // test only one half of the string, to find last appearance
|
||||
len = strlen(TestString)/2; // test only one half of the string, to find last appearance
|
||||
|
||||
/* Search for all characters in the string, including the terminator */
|
||||
for (i = 0; i < len; ++i)
|
||||
|
||||
Reference in New Issue
Block a user