Skip to content

Add Hypothesis fuzz testingΒ #4

@movermeyer

Description

@movermeyer

There is a nice invariant we can use Hypothesis to test.

datetime.fromisoformat is the inverse of datetime.isoformat

In other words, for every datetime object, dt, dt == datetime.fromisoformat(dt.isoformat())

Hypothesis can be used to test this invariant, using its "datetimes strategy".

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions