# test.coordination/core/strings/corpus.strings.test.ts

> 20 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-coordination-core-strings-corpus-strings-test-ts
Source text: https://banes-lab.com/source/testing/test.coordination/core/strings/corpus.strings.test.ts.txt

Listed in [test.coordination/core/strings](https://banes-lab.com/api/source/testing/test.coordination/core/strings.md), after [test.coordination/core/strings/converge.strings.test.ts](https://banes-lab.com/source/testing/test.coordination/core/strings/converge.strings.test.ts.md) and before [test.coordination/core/strings/document.strings.test.ts](https://banes-lab.com/source/testing/test.coordination/core/strings/document.strings.test.ts.md).

## Contained in

- [test.coordination/core/strings](https://banes-lab.com/anatomy/testing/folder-testing-test-coordination-core-strings.md)

## Source

```typescript
import {
    PREVIEW_ONLY,
    appliedOutcome,
    corpusHead,
    corpusSummary,
    noMovesList,
    rewroteLine,
} from "coordination-surface/tools/core/strings/corpus.strings.ts";
import { describe, it } from "vitest";
import assert from "node:assert/strict";

describe("the corpus messages", () => {
    it("report the moves, the outcome and the report location", () => {
        assert.equal(rewroteLine(3, 2), "rewrote 3 references from 2 recorded moves\n");
        assert.ok(noMovesList("corpus.json").includes("corpus.json carries no readable moves list"));
        assert.equal(appliedOutcome(4), "applied, references rewritten=4");
        const head = corpusHead("PASS", 2, 0, PREVIEW_ONLY);
        assert.equal(head, "PASS  resolved=2 findings=0 preview only");
        assert.ok(corpusSummary(head, "{}", "{}", "r.json", "").includes("report: r.json"));
    });
});
```
