From 7301cb36998b6960f0ee9ac407b56df4bac34372 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Sun, 7 May 2023 16:10:21 -0700 Subject: [PATCH] tests --- .../include_descendants_basic.exp.json | 266 ------------- .../include_descendants_edge.exp.json | 365 ------------------ 2 files changed, 631 deletions(-) delete mode 100644 testdata/d2oracle/TestMove/include_descendants_basic.exp.json delete mode 100644 testdata/d2oracle/TestMove/include_descendants_edge.exp.json diff --git a/testdata/d2oracle/TestMove/include_descendants_basic.exp.json b/testdata/d2oracle/TestMove/include_descendants_basic.exp.json deleted file mode 100644 index 7b4a5abaf..000000000 --- a/testdata/d2oracle/TestMove/include_descendants_basic.exp.json +++ /dev/null @@ -1,266 +0,0 @@ -{ - "graph": { - "name": "", - "isFolderOnly": false, - "ast": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:0:0-3:0:13", - "nodes": [ - { - "map_key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:0:0-2:1:12", - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:0:0-0:1:1", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:3:3-2:0:11", - "nodes": [ - { - "map_key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:5:10", - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:5:10", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:3:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:4:9-1:5:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "primary": {}, - "value": {} - } - } - ] - } - } - } - } - ] - }, - "root": { - "id": "", - "id_val": "", - "attributes": { - "label": { - "value": "" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - "edges": null, - "objects": [ - { - "id": "z", - "id_val": "z", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,0:0:0-0:1:1", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "key_path_index": 0, - "map_key_edge_index": -1 - } - ], - "attributes": { - "label": { - "value": "z" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - { - "id": "x", - "id_val": "x", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:5:10", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:3:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:4:9-1:5:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "key_path_index": 0, - "map_key_edge_index": -1 - } - ], - "attributes": { - "label": { - "value": "x" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - { - "id": "y", - "id_val": "y", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:5:10", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:2:7-1:3:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - }, - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_basic.d2,1:4:9-1:5:10", - "value": [ - { - "string": "y", - "raw_string": "y" - } - ] - } - } - ] - }, - "key_path_index": 1, - "map_key_edge_index": -1 - } - ], - "attributes": { - "label": { - "value": "y" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - } - ] - }, - "err": "" -} diff --git a/testdata/d2oracle/TestMove/include_descendants_edge.exp.json b/testdata/d2oracle/TestMove/include_descendants_edge.exp.json deleted file mode 100644 index 1c0ed8424..000000000 --- a/testdata/d2oracle/TestMove/include_descendants_edge.exp.json +++ /dev/null @@ -1,365 +0,0 @@ -{ - "graph": { - "name": "", - "isFolderOnly": false, - "ast": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:0:0-5:0:29", - "nodes": [ - { - "map_key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:0:0-4:1:28", - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:0:0-0:1:1", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:3:3-4:0:27", - "nodes": [ - { - "map_key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,1:2:7-3:3:26", - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,1:2:7-1:3:8", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,1:2:7-1:3:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "primary": {}, - "value": { - "map": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,1:5:10-3:2:25", - "nodes": [ - { - "map_key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:4:16-2:10:22", - "edges": [ - { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:4:16-2:10:22", - "src": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:4:16-2:5:17", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:4:16-2:5:17", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "src_arrow": "", - "dst": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:9:21-2:10:22", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:9:21-2:10:22", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "dst_arrow": ">" - } - ], - "primary": {}, - "value": {} - } - } - ] - } - } - } - } - ] - } - } - } - } - ] - }, - "root": { - "id": "", - "id_val": "", - "attributes": { - "label": { - "value": "" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - "edges": [ - { - "index": 0, - "isCurve": false, - "src_arrow": false, - "dst_arrow": true, - "references": [ - { - "map_key_edge_index": 0 - } - ], - "attributes": { - "label": { - "value": "" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - } - ], - "objects": [ - { - "id": "z", - "id_val": "z", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:0:0-0:1:1", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,0:0:0-0:1:1", - "value": [ - { - "string": "z", - "raw_string": "z" - } - ] - } - } - ] - }, - "key_path_index": 0, - "map_key_edge_index": -1 - } - ], - "attributes": { - "label": { - "value": "z" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - { - "id": "x", - "id_val": "x", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,1:2:7-1:3:8", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,1:2:7-1:3:8", - "value": [ - { - "string": "x", - "raw_string": "x" - } - ] - } - } - ] - }, - "key_path_index": 0, - "map_key_edge_index": -1 - } - ], - "attributes": { - "label": { - "value": "x" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - { - "id": "a", - "id_val": "a", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:4:16-2:5:17", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:4:16-2:5:17", - "value": [ - { - "string": "a", - "raw_string": "a" - } - ] - } - } - ] - }, - "key_path_index": 0, - "map_key_edge_index": 0 - } - ], - "attributes": { - "label": { - "value": "a" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - }, - { - "id": "b", - "id_val": "b", - "references": [ - { - "key": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:9:21-2:10:22", - "path": [ - { - "unquoted_string": { - "range": "d2/testdata/d2oracle/TestMove/include_descendants_edge.d2,2:9:21-2:10:22", - "value": [ - { - "string": "b", - "raw_string": "b" - } - ] - } - } - ] - }, - "key_path_index": 0, - "map_key_edge_index": 0 - } - ], - "attributes": { - "label": { - "value": "b" - }, - "labelDimensions": { - "width": 0, - "height": 0 - }, - "style": {}, - "near_key": null, - "shape": { - "value": "rectangle" - }, - "direction": { - "value": "" - }, - "constraint": { - "value": "" - } - }, - "zIndex": 0 - } - ] - }, - "err": "" -}