Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
Signed-off-by: Kenrick Yap <[email protected]>
  • Loading branch information
kenrickyap committed Jan 30, 2025
1 parent f35f424 commit dfe5d3a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ void json_extract_search_arrays() {
new ExprIntegerValue(1), new ExprIntegerValue(2), new ExprIntegerValue(3))));

// extract specific index from JSON list
for (int i = 0; i < expectedExprValue.size(); i++) {
for (int i = 0; i < expectedExprValues.size(); i++) {
String path = String.format("$.a[%d]", i);
execute_extract_json(expectedExprValue.get(i), jsonArray, path);
execute_extract_json(expectedExprValues.get(i), jsonArray, path);
}

// extract nested object
Expand All @@ -230,7 +230,7 @@ void json_extract_search_arrays() {
execute_extract_json(nestedExpected, jsonArray, "$.a[5].c");

// extract * from JSON list
ExprValue starExpected = new ExprCollectionValue(expectedExprValue);
ExprValue starExpected = new ExprCollectionValue(expectedExprValues);
execute_extract_json(starExpected, jsonArray, "$.a[*]");
}

Expand Down

0 comments on commit dfe5d3a

Please sign in to comment.