Fix issue #221: JSON_C_TO_STRING_NOSLASHESCAPE works incorrectly

Tests added.
This commit is contained in:
chenha0
2016-01-21 20:11:40 +08:00
parent 537f8bcbdb
commit dffdee966f
6 changed files with 24 additions and 6 deletions

View File

@@ -5,6 +5,9 @@ my_string.to_string()="\\"
my_string=/
my_string.to_string()="\/"
my_string.to_string(NOSLASHESCAPE)="/"
my_string=/foo/bar/baz
my_string.to_string()="\/foo\/bar\/baz"
my_string.to_string(NOSLASHESCAPE)="/foo/bar/baz"
my_string=foo
my_string.to_string()="foo"
my_int=9