1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

ArduinoTestSuite updates from Paul Stoffregen

This commit is contained in:
Ricklon
2011-08-29 17:12:08 -07:00
parent 4553cee443
commit c49ba1831b
10 changed files with 251 additions and 105 deletions

View File

@ -1,18 +1,5 @@
#include <ArduinoTestSuite.h>
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("'");
}
}
#include "Test_Equal.h"
void setup()
{