Predicates.Test

loom-sprint-scaffoldtesttypescript
Path: loom-sprint-scaffold/loom/tests/orchestrator/predicates.test.tsRelative: loom/tests/orchestrator/predicates.test.tsSubproject: loom-sprint-scaffoldCategory: tests
Lines: 120Bytes: 5,367Imports: 4Exports: 0has tests

Content Preview

  1. /**
  2. * Tests for predicate evaluators (H1.1).
  3. * All six kinds: pass + fail cases each.
  4. * Injects a scripted PredicateRunner (no network, no shell).
  5. */
  6. import { describe, expect, test } from "bun:test";
  7. import { evaluatePredicate, evaluateAllPredicates, isMachineEvaluableKind } from "../../src/orchestrator/core/predicates";
  8. import type { Predicate } from "../../src/types/contracts";
  9. import type { PredicateRunner, PredicateResult } from "../../src/orchestrator/core/types";
  10. function makePredic