SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
285 stars 26 forks source link

Format byte output as hex? #164

Closed aggieben closed 6 months ago

aggieben commented 1 year ago

This is somewhat minor, but is there a way to format the output of a failed test where bytes are in the output so that the bytes are rendered as hex?

stephen-swensen commented 6 months ago

Hi @aggieben - we don't currently have a way to pass configuration options for formatting. So the formatting choices we do make we try to make as broadly useful as possible. I don't work with raw bytes / hex a whole lot so I am not sure what would be broadly useful to such an audience (e.g. can we say that hex is usually preferable to decimal when rendering bytes?). I'm open to suggestions and examples but closing for now. Thanks for your question!