Skip to content

Commit 89129e0

Browse files
brielovclaude
andcommitted
Fix test script to use check subcommand and only test main.alg files
- Update test script to use 'check' subcommand instead of obsolete '-t' flag - Only test main.alg files (skip helper modules and error case examples) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b8a52de commit 89129e0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/test-examples.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ async function findAlgFiles(dir: string): Promise<string[]> {
1212
const s = await stat(path);
1313
if (s.isDirectory()) {
1414
files.push(...(await findAlgFiles(path)));
15-
} else if (entry.endsWith(".alg")) {
15+
} else if (entry === "main.alg") {
16+
// Only test main.alg files - other .alg files are helper modules or error examples
1617
files.push(path);
1718
}
1819
}
@@ -21,7 +22,7 @@ async function findAlgFiles(dir: string): Promise<string[]> {
2122

2223
async function runWithTimeout(file: string): Promise<{ ok: boolean; output: string }> {
2324
return new Promise((resolve) => {
24-
const proc = Bun.spawn(["bun", "run", "src/index.ts", "-t", file], {
25+
const proc = Bun.spawn(["bun", "run", "src/index.ts", "check", file], {
2526
stdout: "pipe",
2627
stderr: "pipe",
2728
});

0 commit comments

Comments
 (0)