Created
May 9, 2011 18:17
-
-
Save javisantana/963037 to your computer and use it in GitHub Desktop.
quick'n'dirty javascript testing framework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test utils | |
function assert(desc, b) { | |
document.write("**" + desc + "</br>" ); | |
document.write(b ? "OK": "FAIL"); | |
document.write("</br>"); | |
document.write("</br>"); | |
} | |
function test(desc, fn) { | |
assert(desc, fn()) | |
} | |
/* usage: | |
function add(a, b) { return a+b; } | |
test("should add two integer numbers", function() { | |
return add(1, 2) == 3; | |
}); | |
*/ |
me gusta más el de raul https://gist.github.com/963499
molando
On May 10, 2011, at 3:36 PM, javisantana wrote:
me gusta ms el de raul https://gist.github.com/963499
##
Reply to this email directly or view it on GitHub:
https://gist.github.com/963037
Marcelino Llano
[email protected]
Por favor, no cambies de telfono cada seis meses, es un desperdicio.
Please, do not replace your mobile phone every six months, is a waste.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lovely