Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.

Non-printable characters aren't escaped #217

@rhofour

Description

@rhofour

Right now it's impossible to tell he difference between String.fromList [ '\1', '\2' ] and an empty string when used as an input to a fuzz test. This caused some confusion when I thought the input was an empty string.

I'm not sure what the right solution is here, but as-is this a bit of a problem.

Perhaps we could check if a string contains unprintable characters and display it as: String.fromList [...] instead of the usual way.

Alternatively, we could add an option to change how the "Given:" portion of fuzz tests is displayed. That way I could print my data in the way that's most helpful for me, but we could keep the default unchanged.

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