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