镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Open
rhansen wants to merge 1 commit into
TestAnything:masterfrom
rhansen:id-desc
Open

rhansen wants to merge 1 commit into
TestAnything:masterfrom
rhansen:id-desc

Conversation

@rhansen

@rhansen rhansen commented Aug 16, 2024

Copy link
Copy Markdown

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

Leont commented Aug 16, 2024

Copy link
Copy Markdown

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