Skip to content

Commit

Permalink
Update methods_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayatwork authored Sep 17, 2020
1 parent 4f78311 commit 52ca9ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/bloblang/query/methods_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ func TestMethods(t *testing.T) {
{content: `{"foo":[{"bar":"1"},{"bar":{}},{"bar":"2"},{"bar":[]}]}`},
},
output: map[string]interface{}{
"foo.0.bar": "1",
"foo.2.bar": "2",
"foo_0_bar": "1",
"foo_2_bar": "2",
},
},
"check collapse include empty": {
Expand All @@ -642,10 +642,10 @@ func TestMethods(t *testing.T) {
{content: `{"foo":[{"bar":"1"},{"bar":{}},{"bar":"2"},{"bar":[]}]}`},
},
output: map[string]interface{}{
"foo.0.bar": "1",
"foo.1.bar": struct{}{},
"foo.2.bar": "2",
"foo.3.bar": []struct{}{},
"foo_0_bar": "1",
"foo_1_bar": struct{}{},
"foo_2_bar": "2",
"foo_3_bar": []struct{}{},
},
},
"check sha1 hash": {
Expand Down

0 comments on commit 52ca9ce

Please sign in to comment.