diff --git a/jp/match_test.go b/jp/match_test.go index 2143ea0..cd619b2 100644 --- a/jp/match_test.go +++ b/jp/match_test.go @@ -50,3 +50,7 @@ func TestPathMatchDoubleRoot(t *testing.T) { tt.Equal(t, false, jp.PathMatch(jp.C("a"), jp.R().R().C("a"))) tt.Equal(t, false, jp.PathMatch(jp.C("a"), jp.A().A().C("a"))) } + +func TestPathMatchSkipBracket(t *testing.T) { + tt.Equal(t, true, jp.PathMatch(jp.B().C("a"), jp.C("a"))) +}