Skip to content

Instantly share code, notes, and snippets.

@Havvy
Created January 20, 2014 05:07
Show Gist options
  • Select an option

  • Save Havvy/8515133 to your computer and use it in GitHub Desktop.

Select an option

Save Havvy/8515133 to your computer and use it in GitHub Desktop.
macro m { rule { $v } => { $v } }
let it = macro {
rule { $name:lit { $body ... } } => {
it($name, function () {
$body ...
});
}
}
it 'test' {
return true;
m('works');
}
it m('fails') {
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment