RFC6901 JSON Pointer implementation in OCaml using jsont
at main 344 B view raw
1# Token escape/unescape tests 2# Format: unescaped -> escaped 3 4# Basic cases 5foo -> foo 6bar -> bar 7 8# Tilde escaping 9~ -> ~0 10~0 -> ~00 11~1 -> ~01 12 13# Slash escaping 14/ -> ~1 15a/b -> a~1b 16/foo/bar -> ~1foo~1bar 17 18# Combined 19~/ -> ~0~1 20/~ -> ~1~0 21a~b/c -> a~0b~1c 22 23# No escaping needed 24hello world -> hello world 25special!@#$%^&*() -> special!@#$%^&*()