Fix cut-n-paste in leaf_paths; doc and test 'em

This commit is contained in:
Nicolas Williams committed 2014-02-05 23:14:05 -06:00
1 parent a45c937f80
commit 1fa55a3fae
3 files changed
+39 -1

No files matched your search

+8
View File
@@ -440,6 +440,14 @@ path(.)
42
[]
[paths]
[1,[[],{"a":2}]]
[[0],[1],[1,0],[1,1],[1,1,"a"]]
[leaf_paths]
[1,[[],{"a":2}]]
[[0],[1,1,"a"]]
["foo",1] as $p | getpath($p), setpath($p; 20), delpaths([$p])
{"bar": 42, "foo": ["a", "b", "c", "d"]}
"b"