diff options
| author | Felix Hanley <felix@userspace.com.au> | 2018-11-20 05:44:30 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2018-11-20 05:44:30 +0000 |
| commit | 12f344f96a8225c93873aafa0f110babae267a0a (patch) | |
| tree | ac03e950244ea48d6e8f26b72f8d11ed94cded5b /jsonpath/parser_test.go | |
| parent | 505c75b306322a22aef900aac636100eab556be9 (diff) | |
| download | query-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.go | 5 |
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) } } } |
