(l: BaseNode, r: BaseNode)
| 403 | |
| 404 | // digests can collide, so hashes ending in one are confirmed by their JSON |
| 405 | export const hashesMatch = (l: BaseNode, r: BaseNode): boolean => |
| 406 | l.hash === r.hash && (l.hash.endsWith("}") || isJsonEqual(l.json, r.json)) |
| 407 | |
| 408 | export const innerHashesMatch = (l: BaseNode, r: BaseNode): boolean => |
| 409 | (l.kind === r.kind ? l.sameInner(r) : undefined) ?? |
no test coverage detected