concept specification in category functional programming

This is an excerpt from Manning's book Functional Programming in JavaScript.
Now that you’ve written functional code, how do you prove that it works? In other words, how do you ensure that it meets the specifications laid out by your customers? The only way is to write code that tests whether the resulting behavior is as expected. Thinking functionally has a deep impact on application-level code and, through it, directly influences the way you design your tests.
QuickCheck is a Haskell library for randomized property-based testing of a program’s specification or properties. You design a specification of a pure program in the form of properties the program should fulfill, and QuickCheck generates a large permutation of test cases against your program and produces a report. You can find more information at https://hackage.haskell.org/package/QuickCheck.