-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iodata handling #105
Comments
Thanks for the report! This is definitely a bug -- something in Mneme's pattern generation doesn't like this. If you're able to In the meantime, I'd recommend to_string to assert on it, but I'll get this fixed asap. |
I'm silly, you have a simple example there already. Will get it fixed. |
@JonasGruenwald Would you mind giving {:mneme, github: "zachallaun/mneme", ref: "main"} |
Yeah that works, thanks for your quick work @zachallaun ! |
Great to hear! I'll cut a release shortly. (Edit: Included in v0.10.1) |
Hello! I noticed when trying to snapshot the body of an outgoing HTTP request, that mneme will crash with a kind of vague error when given iodata.
Reproduction case:
Error:
The error is also the same if the iodata is not passed directly to
auto_assert
but inside of a struct/map.Would be great if mneme could automatically convert iodata to string like
IO.inspect
does and snapshot the string, or otherwise would be nice to have an error that's more clear about what's wrong with the given input data.The text was updated successfully, but these errors were encountered: