trilean 1.7.2 → 1.7.3

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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_index_C4tKZ0yW = require("./index.C4tKZ0yW-_-GgtmaD.cjs");
2
3
  const require_evaluator_factory = require("./evaluator-factory.cjs");
3
- const require_test_DNmyFkvJ = require("./test.DNmyFkvJ-Dasq3mQO.cjs");
4
4
  //#region src/evaluator-indeterminacy-helpers.ts
5
5
  /**
6
6
  * 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.
@@ -152,8 +152,8 @@ function expr(description, node, expected, overrides = {}) {
152
152
  }
153
153
  async function runFixture({ run, expected }) {
154
154
  const result = await run();
155
- require_test_DNmyFkvJ.globalExpect(result.status).toBe(expected.status);
156
- if (expected.status === "indeterminate" && result.status === "indeterminate") require_test_DNmyFkvJ.globalExpect(result.reason.code).toBe(expected.code);
155
+ require_index_C4tKZ0yW.globalExpect(result.status).toBe(expected.status);
156
+ if (expected.status === "indeterminate" && result.status === "indeterminate") require_index_C4tKZ0yW.globalExpect(result.reason.code).toBe(expected.code);
157
157
  }
158
158
  //#endregion
159
159
  exports.baseResolvers = baseResolvers;
@@ -1,5 +1,5 @@
1
1
  import { createEvaluator, evaluatePredicate, evaluateValue } from "./evaluator-factory.js";
2
- import { t as globalExpect } from "./test.DNmyFkvJ-SCEEf0VK.js";
2
+ import { t as globalExpect } from "./index.C4tKZ0yW-Laf_M0ef.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_test_DNmyFkvJ = require("./test.DNmyFkvJ-Dasq3mQO.cjs");
2
+ const require_index_C4tKZ0yW = require("./index.C4tKZ0yW-_-GgtmaD.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_test_DNmyFkvJ.globalExpect(evaluation).toEqual({
18
+ require_index_C4tKZ0yW.globalExpect(evaluation).toEqual({
19
19
  status: "definite",
20
20
  value: expected
21
21
  });
22
22
  }
23
23
  function expectIndeterminate(evaluation, code) {
24
- require_test_DNmyFkvJ.globalExpect(evaluation.status).toBe("indeterminate");
25
- if (evaluation.status === "indeterminate") require_test_DNmyFkvJ.globalExpect(evaluation.reason.code).toBe(code);
24
+ require_index_C4tKZ0yW.globalExpect(evaluation.status).toBe("indeterminate");
25
+ if (evaluation.status === "indeterminate") require_index_C4tKZ0yW.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 "./test.DNmyFkvJ-SCEEf0VK.js";
1
+ import { t as globalExpect } from "./index.C4tKZ0yW-Laf_M0ef.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 = {