ConaireD / TolimanWIP

WIP Toliman codes go here before being added to the main TOLIMAN github
Other
0 stars 0 forks source link

Consider `pytest-diff`. #19

Closed Jordan-Dennis closed 1 year ago

Jordan-Dennis commented 1 year ago

Hi all, This just makes it easier to write custom diffs for pytest. A diff is what is printed when a comparison fails. I know that the jax arrays format badly so I am creating this issue to remind myself that this could be useful. Regards Jordan.

Jordan-Dennis commented 1 year ago

I think that this is a good idea. What I will do is implement and __eq__ method for each of the classes and then implement the pytest-diff so that I can simplify my testing logic.

Jordan-Dennis commented 1 year ago

I no longer believe that this is necessary.