summaryrefslogtreecommitdiff
path: root/jsonpath/parser_test.go
diff options
context:
space:
mode:
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)
}
}
}