Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created March 31, 2011 20:41
Show Gist options
  • Save slackorama/897213 to your computer and use it in GitHub Desktop.
Save slackorama/897213 to your computer and use it in GitHub Desktop.
% simple unit test for erlang
%
% Eshell V5.7.4 (abort with ^G)
% 1> c(fark).
% {ok,fark}
% 2> fark:test().
% Test passed.
% ok
-module(fark).
-export([wrap/1]).
-include_lib("eunit/include/eunit.hrl").
wrap([]) -> [ "" ].
wrap_test_() -> [
?_assert(wrap([]) == [""])
].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment