Refactored match to use function chaining

This commit is contained in:
eanderton
2014-09-07 16:32:29 -04:00
parent a98788e0d7
commit c81f1892c2
4 changed files with 232 additions and 145 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func assertQuery(t *testing.T, toml, query string, ref []interface{}) {
return
}
path := parse(flow)
result := processPath(path, tree)
result := path.Call(tree)
assertValue(t, result, ref, "((" + query + ")) -> ")
}