mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Adding missing file from ATS_String_Addition test.
This commit is contained in:
@ -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("'");
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user