MCPcopy Create free account
hub / github.com/apache/fory / assertAcyclicEqual

Function assertAcyclicEqual

integration_tests/idl_tests/javascript/roundtrip.ts:233–243  ·  view source on GitHub ↗
(
  label: string,
  expected: T,
  actual: unknown,
)

Source from the content-addressed store, hash-verified

231}
232
233function assertAcyclicEqual<T>(
234 label: string,
235 expected: T,
236 actual: unknown,
237): void {
238 assert.deepStrictEqual(
239 normalizeAcyclic(actual),
240 normalizeAcyclic(expected),
241 `${label} mismatch`,
242 );
243}
244
245function buildDog(): Dog {
246 return { name: "Rex", barkVolume: 5 };

Calls 1

normalizeAcyclicFunction · 0.85

Tested by

no test coverage detected