Skip to content

Instantly share code, notes, and snippets.

@ShimmerFairy
Created March 23, 2010 19:19
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 ShimmerFairy/341539 to your computer and use it in GitHub Desktop.
Save ShimmerFairy/341539 to your computer and use it in GitHub Desktop.
use v6;
use Test;
plan 3;
#not really much of a test (no links to the spec either). Please improve, I only wrote what was required! --lue
sub a () { $a=4 }; #zero-arg sub to test the underlying problem
eval_dies_ok 'e("wtz")', "e should not be defined to accept arguments"
eval_dies_ok 'pi("wtz")',"pi should not be defined to accept arguments either :) "
dies_ok { a(3) }, "this should die, no arguments defined"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment