Pure code is easier to test than code that deals with the outside world

“Pure code is easier to test than code that deals with the outside world. When a function only responds to its visible inputs, we can easily state properties of its behavior that should always be true.” ~ Real World Haskell