summaryrefslogtreecommitdiff
path: root/jsonpath/parser_test.go
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2018-11-20 05:44:30 +0000
committerFelix Hanley <felix@userspace.com.au>2018-11-20 05:44:30 +0000
commit12f344f96a8225c93873aafa0f110babae267a0a (patch)
treeac03e950244ea48d6e8f26b72f8d11ed94cded5b /jsonpath/parser_test.go
parent505c75b306322a22aef900aac636100eab556be9 (diff)
downloadquery-12f344f96a8225c93873aafa0f110babae267a0a.tar.gz
query-12f344f96a8225c93873aafa0f110babae267a0a.tar.bz2
Use Node interface for JSON
Diffstat (limited to 'jsonpath/parser_test.go')
-rw-r--r--jsonpath/parser_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/jsonpath/parser_test.go b/jsonpath/parser_test.go
index 2406651..dd86944 100644
--- a/jsonpath/parser_test.go
+++ b/jsonpath/parser_test.go
@@ -1,7 +1,6 @@
package jsonpath
import (
- //"fmt"
"strings"
"testing"
@@ -84,9 +83,9 @@ func TestParse(t *testing.T) {
}
if tt.expect == "" && actualText != "" {
- t.Fatalf("MatchFirst(%s) => %s, expected nothing", tt.src, actualText)
+ t.Fatalf("MatchFirst(%s, %s) => %s, expected nothing", tt.path, tt.src, actualText)
} else if actualText != tt.expect {
- t.Fatalf("MatchFirst(%s) => %s, expected %s", tt.src, actualText, tt.expect)
+ t.Fatalf("MatchFirst(%s, %s) => %s, expected %s", tt.path, tt.src, actualText, tt.expect)
}
}
}