Skip to content

Instantly share code, notes, and snippets.

@osfameron
Created February 28, 2009 22:45
Show Gist options
  • Save osfameron/72137 to your computer and use it in GitHub Desktop.
Save osfameron/72137 to your computer and use it in GitHub Desktop.
eval q[
$ret = mdo {
mbind $x = Just 1 + 2;
munit $x;
};];
if ($@) {
fail "Error $@";
} else {
is_deeply( $ret, $expected, "Sanity check for next (partial line) test" );
}
=begin This should desugar to
mdo {
mbind Just 1+2, sub {
my ($x) = shift;
munit $x;
}
};
=cut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment