(actual: T, expected: T, msg?: string)
| 21 | * @param msg The optional message to display if the assertion fails. |
| 22 | */ |
| 23 | export function assertLess<T>(actual: T, expected: T, msg?: string) { |
| 24 | if (actual < expected) return; |
| 25 | |
| 26 | const actualString = format(actual); |
| 27 | const expectedString = format(expected); |
| 28 | throw new AssertionError(msg ?? `Expect ${actualString} < ${expectedString}`); |
| 29 | } |
no test coverage detected