purescript-contrib / purescript-profunctor-lenses

Pure profunctor lenses
MIT License
144 stars 51 forks source link

Replace logShow with assertEquals' #135

Closed Neppord closed 3 years ago

Neppord commented 3 years ago

I wanted to make it easier to add automated tests, and so I started by converting the manual ones that already existed.

Working from the principles of iterative improvement, this PR is not perfect but I'm quite sure it is better then the code that existed, and hope the next person (maybe me) will improve it further.

The asserts did not get good names since I don't know what they intended with the test, but at least they are easy to find due to the unique names they have, since they are named by the expression it tests.


Checklist: