Created
December 20, 2011 00:17
-
-
Save fabiomcosta/1499551 to your computer and use it in GitHub Desktop.
testling isEmpty
This file contains 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
echo 'function isEmpty (o) { for (var i in o) return false; return true } require("testling")(function (t) { t.ok(isEmpty({})); t.ok(!isEmpty({toString:1})); t.end() })' | curl -sSNT- testling.com -u [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment