Skip to content

Commit 7822b6b

Browse files
committed
test(lint): the shipped-predicate census counts the percent formula's percentDisplay gate
Claude-Session: https://claude.ai/code/session_01Utp6CajiB6BSQKWowy6YLB Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1503829 commit 7822b6b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/lint/src/validate-predicate-path-refs.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,10 @@ describe('#7010 corpus — shipped METADATA_FORM_REGISTRY', () => {
824824
// object form) to `user` and respelled them `data.type in ['lookup','user']`,
825825
// an `in`-list outside this rule, so two `==` literal comparisons left the
826826
// census.
827-
expect(comparisons, 'no shipped predicate carries an `==`/`!=` literal comparison').toBe(63);
827+
// It is 65 today: #35047's `field :: percentDisplay` gate also opens for a
828+
// percent formula, `data.type == 'formula' && data.returnType == 'percent'`,
829+
// two more single-quoted literal comparisons.
830+
expect(comparisons, 'no shipped predicate carries an `==`/`!=` literal comparison').toBe(65);
828831

829832
const rhsFindings = validatePredicatePathRefs(corrupted)
830833
.filter((f) => f.rule === PREDICATE_RHS_PATH_SHAPED);

0 commit comments

Comments
 (0)