(test: boolean, message: string = '')
| 1 | import isEqual from '../system/f/comparison/Equals/f' |
| 2 | |
| 3 | export function assert(test: boolean, message: string = ''): void { |
| 4 | if (!test) { |
| 5 | throw new Error(message) |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | export function equal<T>(a: T, b: T, message: string = ''): void { |
| 10 | return assert(a === b, message) |
no outgoing calls
no test coverage detected