Added a tests of a string with a double quote in it

This commit is contained in:
Benoît Blanchon committed 2014-06-25 13:47:28 +02:00
1 parent ca53abdc41
commit dd6fd6f198
4 files changed
+28 -1

No files matched your search

+7
View File
@@ -30,6 +30,13 @@ namespace JsonGeneratorTests
AssertJsonIs("[\"hello\"]");
}
TEST_METHOD(AddOneStringContainingDoubleQuote)
{
arr.add("\"");
AssertJsonIs("[\"\\\"\"]");
}
TEST_METHOD(AddTwoStrings)
{
arr.add("hello");