Re: Test elem1 in the test suite

On Tuesday 08 February 2022 16:32:10 (+01:00), Norm Tovey-Walsh wrote:

> >>> The test should succeed if it fails to match its input.
> >
> > Yes. The catalog is wrong.
>
> Right. I can fix that. Given that it will fail to match *any* input, I
> guess it doesn’t much matter what input I give it!
a: "a", b, c.
b: "b", c, d.
c: "c", []. {it should block here, since nothing matches}
d: "d".

It tries to match "abc[]dc[]d"

so I would suggest "abcdcd" as a good choice of input. It should fail after the first c.

The test checks that [] blocks, and doesn't match the empty string.

Steven

Received on Tuesday, 8 February 2022 19:40:03 UTC