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