require("proof")(3, prove)

function prove (okay) {
    var inquiry = require("../..")
    var object, result
    object = { firstName: "Abraham", lastName: "Lincoln" }
//    okay(inquiry('/presidents{ $.lastName + ", " + $.firstName }')(object), 'Lincoln, Abraham', 'transform')
    okay(inquiry('/.>{ $.lastName + ", " + $.firstName }')(object), [ 'Lincoln, Abraham' ], 'transform')
    okay(inquiry('/.>{ $.nothing }')(object), [], 'transform empty')
    okay(inquiry('/.>{ [ $.firstName, $.lastName ] }')(object), [ 'Abraham', 'Lincoln' ], 'transform array')
}

@@ -14,9 +14,9 @@
 f%22)(
-3
+4
 , pr
@@ -166,119 +166,8 @@
 %22 %7D%0A
-//    okay(inquiry('/presidents%7B $.lastName + %22, %22 + $.firstName %7D')(object), 'Lincoln, Abraham', 'transform')%0A
     
@@ -445,10 +445,123 @@
 array')%0A
+    okay(inquiry('%3E%7B %5B $.firstName, $.lastName %5D %7D')(object), %5B 'Abraham', 'Lincoln' %5D, 'transform assume root')%0A
 %7D%0A

Test transforms with implied root slash.