(actual: T, expected: T, msg: string)
| 67 | } |
| 68 | |
| 69 | export function assertLessThan<T>(actual: T, expected: T, msg: string): asserts actual is T { |
| 70 | if (!(actual < expected)) { |
| 71 | throwError(msg, actual, expected, '<'); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | export function assertLessThanOrEqual<T>(actual: T, expected: T, msg: string): asserts actual is T { |
| 76 | if (!(actual <= expected)) { |
no test coverage detected
searching dependent graphs…