Is there a way to run the :fn check with a specific input and not just generated ones ?
You can pull it out into a separate spec and test that spec with s/valid?
Hello, I am not completely clear about the pros and cons of using specs' fdef instead of :pre and :post , fdef intuitively seems more complete
I wrote about all the ways we use spec at work https://corfield.org/blog/2019/09/13/using-spec/
Pre/Post use plain old assert which is on by default (but some people turn it off in production). They tend to produce fairly poor error messages. Fdef is off by default. You can instrument all or just a subset of functions, while you are developing and/or testing. Spec can generate test data for you and can exercise your function in thousands of ways - generative testing.
thank you for your answer! I'm already using spec for generative testing, that's also why i'm considering fdef
(specially with the :fn key)