From b89f4a7d2a9d4261288ae4d75ae103177c172c3f Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 26 Aug 2011 19:52:11 +0200 Subject: Fix qjson test of solidus encoding "\/" 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 Acked-by: Michael Roth Signed-off-by: Luiz Capitulino --- check-qjson.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-qjson.c b/check-qjson.c index 64fcdcb4ad..36d4ac26b4 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\\\"\"", -- cgit v1.2.1