import { describe, it } from "node:test"; import assert from "node:assert/strict"; import { forgedBoundaries } from "../../../tools/core/predicates/marker.predicate.ts"; describe("forgedBoundaries", () => { it("reports each line of a body that would open a fence or a span", () => { const body = ["plain text", " ```ts", "┌─── AGENT A-9", "└─── END AGENT A-9", "`` two ticks"].join("\n"); assert.deepEqual( forgedBoundaries(body).map((boundary) => boundary.line), [2, 3, 4], ); }); });