(
shouldBeTrue: boolean,
message: string
)
| 8 | } |
| 9 | |
| 10 | export function assert( |
| 11 | shouldBeTrue: boolean, |
| 12 | message: string |
| 13 | ): asserts shouldBeTrue { |
| 14 | if (!shouldBeTrue) { |
| 15 | throw Error('Assertion failed: ' + message); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | export function logAssert(shouldBeTrue: boolean, message: string): boolean { |
| 20 | if (!shouldBeTrue) { |
no test coverage detected