Ovid wrote: > That's still pretty ad-hoc and breaks as soon as we encounter: > > is $delimiter, $dashes, > '... we should have the correct delimiter: ---';
The diagnostic block ends at the next test, no matter what, so you just get an empty diagnostic block. ok 23 ... we should have the correct delimiter: --- ok 24 No breakage. > And give that I and many others being our "dependent" test names with > "...", I could easily see a big chunk of TAP getting swallowed and > people getting extremely confused. I'm not sure I understand where ... in a name causes problems. The end token is ... alone on a line which you'd have to be pretty talented to misparse. > Indent the YAML and put it on the next line: > > not ok 2 'some name' # TODO or not TODO > --- > some: YAML > ... > > Sure, we could have things hang at some point in there, as you pointed > out, but the TAP reader, from that single line of TAP, would still have > enough info to say whether or not the test failed. Even if it hangs > prior to displaying diagnostics, the programmer at least can see the > test name and number and be able to take appropriate action. Yeah, I guess even a GUI app can just update the popup failure window, to use my example.