Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require test point ID or hyphen-minus when description exists #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhansen
Copy link

@rhansen rhansen commented Aug 16, 2024

This avoids parsing ambiguity:

1..1
ok 1 is less than 2

Is "1" part of the description, or is it the test point ID? This change makes it clear that the "1" is the test point ID, and the description is "is less than 2". To force the "1" to be part of the description, that line should read:

ok - 1 is less than 2

or:

ok 1 1 is less than 2

or (preferred):

ok 1 - 1 is less than 2

This avoids parsing ambiguity:

    1..1
    ok 1 is less than 2

Is "1" part of the description, or is it the test point ID?  This
change makes it clear that the "1" is the test point ID, and the
description is "is less than 2".  To force the "1" to be part of the
description, that line should read:

    ok - 1 is less than 2

or:

    ok 1 1 is less than 2

or (preferred):

    ok 1 - 1 is less than 2
@Leont
Copy link

Leont commented Aug 16, 2024

Yeah, it makes sense for future versions of TAP to require this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants