Skip to content

Can we have support for array elements that are not primitive types? #8

@SteveHigham

Description

@SteveHigham

I would like to compare arrays whose elements are of type BN or other structured types.

E.g. expect (idArray).to.be.containingAllOf ([new BN (0), new BN (1)]);

This "should" pass but currently returns:
AssertionError: expected [ <BN: 0>, <BN: 1> ] to be containing all of [0,1]

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