forked from bblanchon/ArduinoJson
Fixed failing test
This commit is contained in:
1 parent
1ce6661fa6
commit
85ffb83aa6
3 files changed
+32
-9
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user