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

Function assertEqual

examples/acceptance/ohlc-sample.ts:14–19  ·  view source on GitHub ↗
(label: string, actual: T, expected: T)

Source from the content-addressed store, hash-verified

12};
13
14const assertEqual = <T>(label: string, actual: T, expected: T): void => {
15 assert(
16 actual === expected,
17 `${label}: expected ${expected} but got ${actual}`,
18 );
19};
20
21const assertArrayLength = (label: string, arr: ReadonlyArray<unknown>, expected: number): void => {
22 assertEqual(`${label} length`, arr.length, expected);

Callers 2

assertArrayLengthFunction · 0.70
assertOHLCEqualFunction · 0.70

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected