Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
AsaiYusuke committed Oct 26, 2023
1 parent b5fd772 commit 5fa4eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_jsonpath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3548,7 +3548,7 @@ func TestRetrieve_filterCompare(t *testing.T) {
`syntax-check::bool-literal`: []TestCase{
{
jsonpath: `$[?(@.a==false)]`,
inputJSON: `[{"a":null},{"a":false},{"a":true},{"a":0},{"a":1},{"a":"false"}]`,
inputJSON: `[{"a":null},{"a":false},{"a":true},{"a":0},{"a":1},{"a":"false"},{"b":false}]`,
expectedJSON: `[{"a":false}]`,
},
{
Expand All @@ -3563,7 +3563,7 @@ func TestRetrieve_filterCompare(t *testing.T) {
},
{
jsonpath: `$[?(@.a==true)]`,
inputJSON: `[{"a":null},{"a":false},{"a":true},{"a":0},{"a":1},{"a":"false"}]`,
inputJSON: `[{"a":null},{"a":false},{"a":true},{"a":0},{"a":1},{"a":"false"},{"b":true}]`,
expectedJSON: `[{"a":true}]`,
},
{
Expand Down

0 comments on commit 5fa4eac

Please sign in to comment.