MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / assert

Function assert

examples/acceptance/ohlc-sample.ts:10–12  ·  view source on GitHub ↗
(condition: unknown, message: string)

Source from the content-addressed store, hash-verified

8// and handles edge cases properly for both tuple and object input formats.
9
10const assert = (condition: unknown, message: string): void => {
11 if (!condition) throw new Error(message);
12};
13
14const assertEqual = <T>(label: string, actual: T, expected: T): void => {
15 assert(

Callers 2

assertEqualFunction · 0.70
ohlc-sample.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected