forked from bblanchon/ArduinoJson
Added a test that appends special chars
This commit is contained in:
1 parent
6ea9574330
commit
55487ad668
1 file changed
+7
-1
@@ -29,12 +29,18 @@ namespace JsonGeneratorTests
|
||||
assertResultIs("");
|
||||
}
|
||||
|
||||
TEST_METHOD(AppendString)
|
||||
TEST_METHOD(AppendOneString)
|
||||
{
|
||||
append("ABCD");
|
||||
assertResultIs("ABCD");
|
||||
}
|
||||
|
||||
TEST_METHOD(AppendSpecialChars)
|
||||
{
|
||||
append("\\\"\/\b\f\n\r");
|
||||
assertResultIs("\\\"\/\b\f\n\r");
|
||||
}
|
||||
|
||||
void append(const char* s)
|
||||
{
|
||||
sb->append(s);
|
||||
|
||||
Reference in new issue
Block a user