1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

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

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("'");
}
}