* Ensures that the given constructor throws the expected error.
(
// Destructure to verify that "this" type is bound
{ make }: { readonly make: (a: A) => B },
input: A,
message: string
)
| 77 | * Ensures that the given constructor throws the expected error. |
| 78 | */ |
| 79 | fail<const A, const B>( |
| 80 | // Destructure to verify that "this" type is bound |
| 81 | { make }: { readonly make: (a: A) => B }, |
| 82 | input: A, |
| 83 | message: string |
| 84 | ) { |
| 85 | out.parseError(() => make(input), message) |
| 86 | } |
| 87 | }, |
| 88 | |
| 89 | arbitrary: { |
no test coverage detected