Skip to content

panic in checkFailFile if code has been changed #63

@jbricht

Description

@jbricht

Hi, thanks for the great library :)

I just encountered a very confusing panic, the "overrun" panic from drawBits. After grepping through the library a bit, i realized it was panicking while trying to replay some kind of past test failure. Deleting all the files in testdata made the panic go away.

I had just changed my code to draw more often, so I guess it was trying to run the new code on the old fail file and running out of recorded rng output?

Not sure of the best way to handle this situation, but a more helpful error message would be fantastic, if you have the time!

Again, thank you for the wonderful library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed infoFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions