Fixed failing test

This commit is contained in:
Benoit Blanchon
2014-07-31 18:50:01 +02:00
parent 1ce6661fa6
commit 85ffb83aa6
3 changed files with 32 additions and 9 deletions

View File

@ -6,6 +6,7 @@
#pragma once
#include "Print.h"
#include <string.h> // for strcmp
namespace ArduinoJson
{
@ -21,6 +22,11 @@ namespace ArduinoJson
}
size_t printTo(Print&) const;
bool equals(char const* s)
{
return strcmp(s, rawString) == 0;
}
private:
const char* rawString;