Added backslash escaping test case

This commit is contained in:
Joshua Welsh 2018-11-07 10:28:15 +00:00
parent 48d34adceb
commit dc363de894
No known key found for this signature in database
GPG Key ID: 40E3F42A5EB576FE
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ func TestBasic(t *testing.T) {
testRaw(t, setBool, `[null]`, ``, `0`, nil)
testRaw(t, setString, `{"arr":[1]}`, ``, `arr.-1`, 1)
testRaw(t, setString, `{"a":"\\"}`, ``, `a`, "\\")
testRaw(t, setString, `{"a":"C:\\Windows\\System32"}`, ``, `a`, `C:\Windows\System32`)
}
func TestDelete(t *testing.T) {