trilean 1.13.4 → 1.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { createEvaluator, evaluatePredicate, evaluateValue } from "./evaluator-factory.js";
2
- import { t as globalExpect } from "./index.C4tKZ0yW-D6D25qxM.js";
2
+ import { t as globalExpect } from "./index.CZzC1gGg-DVgiC1Nq.js";
3
3
  //#region src/evaluator-indeterminacy-helpers.ts
4
4
  /**
5
5
  * Shared fixture machinery for the two split indeterminacy test files (evaluator.indeterminacy-table.unit.test.ts, evaluator.indeterminacy-cases.unit.test.ts): systematic, table-driven coverage of README.md's "Indeterminacy reference" section, one fixture per node-kind x reason-code combination that section documents, for every `PredicateNode`/`ExpressionNode` kind implemented. This complements, rather than replaces, the ad hoc behavioural tests already spread across the evaluator.*.test.ts files and truth-tables.unit.test.ts.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_index_C4tKZ0yW = require("./index.C4tKZ0yW-BXgPC7yz.cjs");
2
+ const require_index_CZzC1gGg = require("./index.CZzC1gGg-C3tq-f5f.cjs");
3
3
  //#region src/evaluator-test-helpers.ts
4
4
  /** A resolver reporting a fixed `{ kind: "number", value: 10, unit: { m: 1 } }` for key `"present"`, and not-found for anything else -- `resolveLookup`/`resolveCollection` are never exercised by expression-level nodes and are stubbed only to satisfy `Resolvers`. Shared across the split `evaluator.*.test.ts` files below; a test needing genuinely different resolver behaviour spreads over it (`{ ...resolvers, resolveValue: ... }`) locally rather than mutating this shared instance. */
5
5
  const resolvers = {
@@ -15,14 +15,14 @@ const resolvers = {
15
15
  resolveCollection: async () => Promise.resolve([])
16
16
  };
17
17
  function expectDefinite(evaluation, expected) {
18
- require_index_C4tKZ0yW.globalExpect(evaluation).toEqual({
18
+ require_index_CZzC1gGg.globalExpect(evaluation).toEqual({
19
19
  status: "definite",
20
20
  value: expected
21
21
  });
22
22
  }
23
23
  function expectIndeterminate(evaluation, code) {
24
- require_index_C4tKZ0yW.globalExpect(evaluation.status).toBe("indeterminate");
25
- if (evaluation.status === "indeterminate") require_index_C4tKZ0yW.globalExpect(evaluation.reason.code).toBe(code);
24
+ require_index_CZzC1gGg.globalExpect(evaluation.status).toBe("indeterminate");
25
+ if (evaluation.status === "indeterminate") require_index_CZzC1gGg.globalExpect(evaluation.reason.code).toBe(code);
26
26
  }
27
27
  /** A narrowing type guard for a resolver context treated as a plain record, following this repo's `object -> Record<string, unknown>` narrowing convention rather than an `as Record<string, unknown>` assertion. */
28
28
  function isPlainRecord(value) {
@@ -1,4 +1,4 @@
1
- import { t as globalExpect } from "./index.C4tKZ0yW-D6D25qxM.js";
1
+ import { t as globalExpect } from "./index.CZzC1gGg-DVgiC1Nq.js";
2
2
  //#region src/evaluator-test-helpers.ts
3
3
  /** A resolver reporting a fixed `{ kind: "number", value: 10, unit: { m: 1 } }` for key `"present"`, and not-found for anything else -- `resolveLookup`/`resolveCollection` are never exercised by expression-level nodes and are stubbed only to satisfy `Resolvers`. Shared across the split `evaluator.*.test.ts` files below; a test needing genuinely different resolver behaviour spreads over it (`{ ...resolvers, resolveValue: ... }`) locally rather than mutating this shared instance. */
4
4
  const resolvers = {