Yeah it's definitely not for all domains.
I usually write the tests afterwards, except for very well-defined engineering problems, and the REPL exploration helps inform what tests to write.