Skip to content

check creates large output when large sequences are not equal #57

@vladopajic

Description

@vladopajic

when using check for two sequences, and in case when those are vary large and not equal (in nim-libp2p/nim-quic we create sequences of few hundred MB) output created overflows entire stdout.

Image

when comparing sequences, or anything that has length, it would be better to have size of sequence in mind when doing output.

in nim-quic repo we have created checkEqual utility that does same thing as check but creates human friend output. this utility might be further improved to output both values if lengths are below some threshold.

it would be nice if check has similar behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions