Created
February 28, 2009 22:45
-
-
Save osfameron/72137 to your computer and use it in GitHub Desktop.
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
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