MCPcopy Index your code
hub / github.com/microsoft/AI-Engineering-Coach / assert

Function assert

scripts/e2e-real-data.ts:19–27  ·  view source on GitHub ↗
(condition: boolean, label: string, detail?: string)

Source from the content-addressed store, hash-verified

17let passes = 0;
18
19function assert(condition: boolean, label: string, detail?: string) {
20 if (condition) {
21 passes++;
22 console.log(` PASS ${label}`);
23 } else {
24 failures++;
25 console.error(` FAIL ${label}${detail ? ' — ' + detail : ''}`);
26 }
27}
28
29function section(name: string) {
30 console.log(`\n=== ${name} ===`);

Callers 1

e2e-real-data.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected