# tests/core/predicates/marker.predicate.test.ts

> 12 lines of code and 0 definitions.

Tree: Coordination tree
Language: typescript
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tests-core-predicates-marker-predicate-test-ts
Source text: https://banes-lab.com/assets/sources/source.0ebb61669c7c21208b66af54967baf0895cdfe847856fe6fe8c97faa8e921d87.generated.txt

## Source

````typescript
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],
        );
    });
});
````
