Micro Lightweight Unit Testing
Joe Armstrong - noreply@blogger.com (Joe Armstrong) - January 28, 2009I’m often asked the question “what unit testing framework do you use?” The answer is usually I don’t, but I do use a form of micro testing that is built into Erlang.
In Erlang, every assignment of the form Lhs = Rhs where the Lhs is a ground-term and Rhs is a non-ground term can be viewed as an assertion, or unit test, since it can possibly fail.
So when we write:
{ok, S} = file:open(”
Categories: Blogs Joe Armstrong
Erlang on Twitter
» lhoguin (Loïc Hoguin): RT @pso2arkive: Only 4 weeks left to help support @lhoguin’s #Farwest project! #Erlang https://t.co/IcjeB7z8SL
» ntcoding (Nick): if I can get an erlang dbus spike working before I go to be in an hour I’m going to get a great night’s sleep
» edropple (Ed): @The_Evan you didn’t write your distributed map-reduce functions in erlang is the problem.
» erlang_nala (erlang nala yudha): RT @Sarah_A_Ferreti: #sarahardhelia #sharepict http://t.co/ApvZsL0JqQ
» pso2arkive (The Arkive): Only 4 weeks left to help support @lhoguin’s #Farwest project! #Erlang https://t.co/IcjeB7z8SL
» akohli (akohli): Structural conflation - eep. With Erlang example. #erlangfactory
» ErlangCamp (ErlangCamp): We’re looking forward to geeking out with you and the rest of the #Erlang-campers, @sven_kr! And to drinking delicious beer.
» hnbreaking (Breaking Hacker News): Elixir 0.9.0 released. Reducers inspired by Clojure’s Reducers on the Erlang VM http://t.co/15HcOAcxJV
» y_hafri (Younès Hafri, Ph.D.): #erlang R14B04 ... my love forever
» HNTweets (Hacker News): Elixir 0.9.0 released. Reducers inspired by Clojure’s Reducers on the Erlang VM: http://t.co/3Pip1TZc2R Comments: https://t.co/70b1SL5uwp
Statistics
Number of aggregated posts: 10651
Most recent article: May 21, 2013
Latest comments
» Moraru on This is Why You Spent All that Time Learning to Program: It is true that computer science was a pain in the back at time that i’ve had to learn it…
» Commercial hand dryers on Couchbase Meetup at new HQ: Buy online from here where you will get so much of variety in Commercial hand dryers for people. If you…
» Fort McMurray Homes on Motivated Reasoning and Erlang vs Python vs Node: I don’t really understand why this post is motivational? I don’t even see a post, just a title. Fort McMurray…