Adding missing file from ATS_String_Addition test.

This commit is contained in:
David A. Mellis 2011-09-01 11:28:37 -04:00
parent 33146ca75a
commit 25770f69a8
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
void Test_Equal(char *testString, char *expected, const String &actual)
{
char buf[100]; actual.toCharArray(buf, 100);
boolean b = (strcmp(buf, expected) == 0);
ATS_PrintTestStatus(testString, b);
if (!b) {
Serial.print("expected '");
Serial.print(expected);
Serial.print("', actual '");
Serial.print(actual);
Serial.println("'");
}
}