Skip to content

why does Test::Deep export "hash" and "array" subs? #93

@karenetheridge

Description

@karenetheridge

These seem to be purely internal classes for working with hashes and arrays; why do we need to import matching subs for them?

I found this while trying to use Test::Deep with Test2::V0, which also exports these names (along with bag and bool, which also conflict). So, I find myself doing this:

use Test2::V0 qw(!bag !bool);    # prefer Test::Deep's versions
use Test::Deep qw(!array !hash); # prefer Test2's versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions