(actual: any, message?: string)
| 283 | } |
| 284 | |
| 285 | export function assertNotNull(actual: any, message?: string) { |
| 286 | if (actual === null || actual === undefined) { |
| 287 | throw new Error(message + ' Actual: ' + actual + ' is null/undefined'); |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | export function areClose(actual: number, expected: number, delta: number): boolean { |
| 292 | if (isNaN(actual) || Math.abs(actual - expected) > delta) { |
no outgoing calls
no test coverage detected