We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33146ca commit 25770f6Copy full SHA for 25770f6
libraries/ArduinoTestSuite/examples/ATS_String_Addition/Test_Equal.h
@@ -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