# tests/core/readers/architecture.reader.test.ts

> 10 lines of code and 0 definitions.

Tree: Coordination tree
Language: typescript
Canonical: https://banes-lab.com/anatomy/coordination#file-coordination-tests-core-readers-architecture-reader-test-ts
Source text: https://banes-lab.com/assets/sources/source.5b73ed8b7a744ae842ae78ef6fafc40efbec774b738efc8fb0cb20ff0e2bac5b.generated.txt

## Source

```typescript
import { describe, it } from "node:test";
import assert from "node:assert/strict";
import { walkPrinciples } from "../../../tools/core/readers/architecture.reader.ts";

const CATALOG = ["### ARC-1 one", "### ARC-12 twelve", "prose naming ARC-3", "### ARC- no number"].join("\n");

describe("walkPrinciples", () => {
    it("counts declared records, the ones cited, the uncited and the citations that resolve to nothing", () => {
        const walk = walkPrinciples(CATALOG, ["see ARC-1 and ARC-99", "ARC-1ARC-7 run together"]);
        assert.deepEqual(walk, { cited: 1, danglingCitations: ["ARC-7", "ARC-99"], declared: 2, uncited: ["ARC-12"] });
    });
});
```
