Files
LLeMbas-CLI/tests/conformance.test.ts
T
HomerandClaude Opus 5.5 f9bad01ed7
ci / check (push) Waiting to run
LLeMbas CLI 1.0.0
The first public release of LLeMbas CLI: a terminal coding agent and project manager for any LLM
API, with permission modes, git snapshots, memory and skills, knowledge bases, MCP, voice, and a
link to a LLeMbas instance whose web UI can work its sessions too. Signed Linux binaries for x64
and arm64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 21:59:03 +00:00

22 lines
1.1 KiB
TypeScript

// Every conformance case of the harness spec (harness/conformance/), through LLeMbas CLI. LLeMbas
// runs the same files through its own implementation; a case that fails on one side only is a
// difference between the two harnesses, which the spec exists to prevent.
import { expect, test } from "bun:test"
import { readdirSync, readFileSync } from "node:fs"
import { join } from "node:path"
import { AREAS } from "./conformance.ts"
const dir = join(import.meta.dir, "..", "harness", "conformance")
for (const f of readdirSync(dir).filter((x) => x.endsWith(".json")).sort()) {
const area = f.replace(/\.json$/, "")
const doc = JSON.parse(readFileSync(join(dir, f), "utf8")) as { cases: Record<string, unknown>[] }
test(`conformance: ${area} (${doc.cases.length} cases)`, () => {
expect(AREAS[area]).toBeDefined()
for (const c of doc.cases) {
const { expect: want, ...input } = c
expect(want, `${area}: ${JSON.stringify(input)} has no expect — bun run harness record`).toBeDefined()
expect({ input, got: AREAS[area]!(input) }).toEqual({ input, got: want })
}
})
}