(actual: T, expected: T, message: string)
| 23 | * @throws Error if values are not equal |
| 24 | */ |
| 25 | export 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 |
no outgoing calls