Skip to content

Does not allow numeric test names #1076

@lichtkind

Description

@lichtkind

When i test my test method with Test::Builder::Tester; and use numbers as test names I get:
not ok 3 - is_tuple checks if got values in an ARRAY

Failed test 'is_tuple checks if got values in an ARRAY'

at t/000_test_color.t line 24.

STDERR is:

# failed test: 3 - got values that are not a tuple (ARRAY ref)

> # You named your test '3'. You shouldn't use numbers for your test names.

> # Very confusing.

> # Failed test '3'

> # at t/000_test_color.t line 23.

not:

# failed test: 3 - got values that are not a tuple (ARRAY ref)

> /#\s+Failed\ test.?\n?.?at\ t/000_test_color.t line 23.*\n?/

>

>

>

as expected

I think my end of the code is totally fine because when i rename my test to one char name instead of one digit and change all string accordingly all is fine again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions