MCPcopy
hub / github.com/fosrl/pangolin / assertEquals

Function assertEquals

test/assert.ts:25–29  ·  view source on GitHub ↗
(actual: T, expected: T, message: string)

Source from the content-addressed store, hash-verified

23 * @throws Error if values are not equal
24 */
25export function assertEquals<T>(actual: T, expected: T, message: string): void {
26 if (actual !== expected) {
27 throw new Error(`${message}\nExpected: ${expected}\nActual: ${actual}`);
28 }
29}
30
31/**
32 * Tests if a function throws an expected error

Callers 13

runTestsFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
testSiteOrgMatchLogicFunction · 0.90
testRouteStackOrderingFunction · 0.90
testSecurityScenariosFunction · 0.90
runTestsFunction · 0.90
runTestsFunction · 0.90
runSpecialCharacterTestsFunction · 0.90

Calls

no outgoing calls

Tested by 13

runTestsFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
testSiteOrgMatchLogicFunction · 0.72
testRouteStackOrderingFunction · 0.72
testSecurityScenariosFunction · 0.72
runTestsFunction · 0.72
runTestsFunction · 0.72
runSpecialCharacterTestsFunction · 0.72