Skip to content

Instantly share code, notes, and snippets.

@fogus
Created June 4, 2014 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogus/940739cb340f4d09bb91 to your computer and use it in GitHub Desktop.
Save fogus/940739cb340f4d09bb91 to your computer and use it in GitHub Desktop.
fn(test
"A simple test function that takes two expressions and uses a function to test them"
[Expr1 Expr2 F Desc]
if(not(F(Expr1 Expr2))
out("Test of " Desc " failed!" crlf)
out(" " Expr1 " " F " " Expr2 crlf)
false
else
true))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment