Implement implicit object references and capability query foundations
This commit is contained in:
@@ -61,6 +61,17 @@ test("record/list query values preserve nested projections and leaf predicates",
|
||||
}
|
||||
}
|
||||
const raw = JSON.stringify(checked.output);
|
||||
const node = extent.selection[0]!.selection[0]!;
|
||||
assert.equal(node.selection.filter((field) => field.key === "_camino").length, 1);
|
||||
const assertValuesOnly = (fields: typeof node.selection): void => {
|
||||
for (const field of fields) {
|
||||
assert.notEqual(field.name, "_camino", "Structured values do not acquire graph identity");
|
||||
assertValuesOnly(field.selection);
|
||||
}
|
||||
};
|
||||
assertValuesOnly(node.selection.filter((field) => field.key !== "_camino"));
|
||||
assert.equal(checked.selection[0]!.selection.some((field) => field.key === "_camino"), false);
|
||||
assert.equal(extent.selection.some((field) => field.key === "_camino"), false);
|
||||
assert.match(raw, /"begin"/);
|
||||
assert.match(raw, /"tags":\{"kind":"list"/);
|
||||
assert.equal(checked.effects.filter((e) => e.memberId === "range").length, 1);
|
||||
|
||||
Reference in New Issue
Block a user