Arrow: Examples-based tests

Created on 27 Nov 2017  路  4Comments  路  Source: arrow-kt/arrow

Hello,
kategory.io has not yet complete documentation for everything, which is ok since Rome was not built in one day
So I dived into the tests to try to grasp how this works and discovered that you have powerful laws-based testing. But since we learn first by seeing an example and then generalizing, why not combine that with more traditional examples-based unit tests? Those more concrete examples can then serve as a basis for the docs.

My 2 cents=>
https://gist.github.com/jmfayard/552512b30d2b5771c1c23afd1a593d1b

work in progress

Most helpful comment

yes! @pakoito

All 4 comments

@jmfayard we are happy to add a new module kategory-examples containing such tests, snippets, and larger examples. Would you be willing to become a contributor and add them as you learn more about the lib? I could have a skeleton done this week for you to start in!

yes! @pakoito

Cool, I'll get on it and update you here :D

PR sent, I'll get it approved ASAP and feel free to start hacking now :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JorgeCastilloPrz picture JorgeCastilloPrz  路  3Comments

gortiz picture gortiz  路  3Comments

pakoito picture pakoito  路  4Comments

lgtout picture lgtout  路  4Comments

vejeta picture vejeta  路  3Comments