MCPcopy
hub / github.com/buxuku/SmartSub / eq

Function eq

scripts/test-engine-units.ts:99–108  ·  view source on GitHub ↗
(actual: unknown, expected: unknown, name: string)

Source from the content-addressed store, hash-verified

97let failed = 0;
98
99function eq(actual: unknown, expected: unknown, name: string): void {
100 const a = JSON.stringify(actual);
101 const e = JSON.stringify(expected);
102 if (a === e) {
103 passed++;
104 } else {
105 failed++;
106 console.error(`✗ ${name}\n expected: ${e}\n actual: ${a}`);
107 }
108}
109
110// --- secondsToSrtTime ---
111eq(secondsToSrtTime(0), '00:00:00.000', 'srt: zero');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected