Fix function calls from unit tests
Fix calls to 'pxf_free_expression_items_list' from unit tests (the 2nd parameter is always true)
'enrich_trivial_expression' was renamed to 'add_extra_expression_items'. The necessary changes in tests are made by this commit
@@ -814,7 +814,7 @@ void test__pxf_serialize_filter_list__oneFilter(void **state)
char* result = pxf_serialize_filter_list(expressionItems);
assert_string_equal(result, "a0c25s4d1984o5");
- pxf_free_expression_items_list(expressionItems, true);
+ pxf_free_expression_items_list(expressionItems);
expressionItems = NIL;
pfree(result);
@@ -832,7 +832,7 @@ void test__pxf_serialize_fillter_list__nullFilter(void **state)
char* result = pxf_serialize_filter_list(expressionItems);
assert_string_equal(result, "a0o8");
- pxf_free_expression_items_list(expressionItems, true);
+ pxf_free_expression_items_list(expressionItems);
expressionItems = NIL;
pfree(result);
@@ -866,11 +866,11 @@ test__pxf_serialize_filter_list__manyFilters(void **state)
pfree(result);
int trivialExpressionItems = expressionItems->length;
- enrich_trivial_expression(expressionItems);
+ add_extra_and_expression_items(expressionItems, trivialExpressionItems - 1);
assert_int_equal(expressionItems->length, 2 * trivialExpressionItems - 1);
- pxf_free_expression_items_list(expressionItems, true);
+ pxf_free_expression_items_list(expressionItems);
expressionItems = NIL;
}
