From: Jan Kiszka <jan.kis...@siemens.com> "\/" is supposed to be decoded as "/", but there is no need to encode "/" via escape. Fix the existing test and add a second one expressing this.
Signed-off-by: Jan Kiszka <jan.kis...@siemens.com> Acked-by: Michael Roth <mdr...@linux.vnet.ibm.com> Signed-off-by: Luiz Capitulino <lcapitul...@redhat.com> --- check-qjson.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/check-qjson.c b/check-qjson.c index 64fcdcb..36d4ac2 100644 --- a/check-qjson.c +++ b/check-qjson.c @@ -33,7 +33,8 @@ START_TEST(escaped_string) { "\"\\n\"", "\n" }, { "\"\\r\"", "\r" }, { "\"\\t\"", "\t" }, - { "\"\\/\"", "\\/" }, + { "\"/\"", "/" }, + { "\"\\/\"", "/", .skip = 1 }, { "\"\\\\\"", "\\" }, { "\"\\\"\"", "\"" }, { "\"hello world \\\"embedded string\\\"\"", -- 1.7.7.rc0.72.g4b5ea