Skip to content

Commit 25770f6

Browse files
committed
Adding missing file from ATS_String_Addition test.
1 parent 33146ca commit 25770f6

File tree

1 file changed

+13
-0
lines changed
  • libraries/ArduinoTestSuite/examples/ATS_String_Addition

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
void Test_Equal(char *testString, char *expected, const String &actual)
2+
{
3+
char buf[100]; actual.toCharArray(buf, 100);
4+
boolean b = (strcmp(buf, expected) == 0);
5+
ATS_PrintTestStatus(testString, b);
6+
if (!b) {
7+
Serial.print("expected '");
8+
Serial.print(expected);
9+
Serial.print("', actual '");
10+
Serial.print(actual);
11+
Serial.println("'");
12+
}
13+
}

0 commit comments

Comments
 (0)