Embarrassing

I had one test that had been failing for a long time, but since it wasn't 
urgent, I had left it to fix.

Actually it was a negative test: it ought to have failed, and it didn't: 
there was an extra character at the end of the input that it should have 
complained about.

Turns out that it was an off-by-one error, and any test with exactly one 
spurious character at the end of otherwise correct input would have passed. 
When I fixed it, about half my tests failed: they all had a spurious 
newline at the end of the input, but it just hadn't been visible.

Steven

Received on Wednesday, 12 October 2022 21:18:01 UTC