Predicates.Test
Path:
loom-sprint-scaffold/loom/tests/orchestrator/predicates.test.tsRelative: loom/tests/orchestrator/predicates.test.tsSubproject: loom-sprint-scaffoldCategory: testsLines: 120Bytes: 5,367Imports: 4Exports: 0has tests
Content Preview
- /**
- * Tests for predicate evaluators (H1.1).
- * All six kinds: pass + fail cases each.
- * Injects a scripted PredicateRunner (no network, no shell).
- */
- import { describe, expect, test } from "bun:test";
- import { evaluatePredicate, evaluateAllPredicates, isMachineEvaluableKind } from "../../src/orchestrator/core/predicates";
- import type { Predicate } from "../../src/types/contracts";
- import type { PredicateRunner, PredicateResult } from "../../src/orchestrator/core/types";
- function makePredic