From a282041ee9bd261a53508c75b31a10b64a7c3546 Mon Sep 17 00:00:00 2001 From: Joes <j.dejonge@students.uu.nl> Date: Thu, 4 Nov 2021 12:49:11 +0100 Subject: [PATCH] json test data changed --- aql/hierarchy_test.go | 58 +++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/aql/hierarchy_test.go b/aql/hierarchy_test.go index e2a7195..f743ca8 100644 --- a/aql/hierarchy_test.go +++ b/aql/hierarchy_test.go @@ -52,25 +52,29 @@ func TestHierarchyBasic(t *testing.T) { "filters": [ { "ID": 0, - "filteredType": "entity", - "filteredID": 0, + "fromType": "entity", + "fromID": 0, + "toType": "relation", + "toID": 0, "attribute": "age", - "dataType": "int", - "matchType": "NEQ", - "value": "40", + "value": "45", + "dataType": "number", + "matchType": "GT", "inType": "", - "inID": 0 + "inID": -1 }, { "ID": 1, - "filteredType": "relation", - "filteredID": 0, + "fromType": "relation", + "fromID": 0, + "toType": "relation", + "toID": 1, "attribute": "isChairman", - "dataType": "bool", - "matchType": "exact", - "value": "true", + "value": "45", + "dataType": "number", + "matchType": "GT", "inType": "", - "inID": 0 + "inID": -1 } ], "limit": 5000 @@ -130,25 +134,29 @@ func TestHierarchyRandomStart(t *testing.T) { "filters": [ { "ID": 0, - "filteredType": "entity", - "filteredID": 0, + "fromType": "entity", + "fromID": 0, + "toType": "relation", + "toID": 0, "attribute": "age", - "dataType": "int", - "matchType": "NEQ", - "value": "40", + "value": "45", + "dataType": "number", + "matchType": "GT", "inType": "", - "inID": 0 + "inID": -1 }, { "ID": 1, - "filteredType": "relation", - "filteredID": 0, + "fromType": "relation", + "fromID": 0, + "toType": "relation", + "toID": 1, "attribute": "isChairman", - "dataType": "bool", - "matchType": "exact", - "value": "true", + "value": "45", + "dataType": "number", + "matchType": "GT", "inType": "", - "inID": 0 + "inID": -1 } ], "limit": 5000 @@ -309,6 +317,8 @@ func TestHierarchyWithGroupby(t *testing.T) { for i := range JSONQuery.Entities { search(&JSONQuery, i) + + fmt.Println(listoflists) sortedListOfLists := make([]pdictList, len(listoflists)) for i, list := range listoflists { k := make(pdictList, list.Len()) -- GitLab