Skip to content

Commit

Permalink
eliminate a "nom regression"
Browse files Browse the repository at this point in the history
dies_ok doesn't leave a $! around for testing, and the error message
includes the function name, but not the class.

Eliminate unneeded EVAL
  • Loading branch information
coke committed Feb 26, 2014
1 parent 20f286c commit ca05eae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions S02-names-vars/names.t
Expand Up @@ -69,11 +69,14 @@ eval_dies_ok '::.^methods', ':: is not a valid package';
'dies when calling non-existent sub in existing package';
# RT #74520
class TestA { };
dies_ok { EVAL 'TestA::b(3, :foo)'},
dies_ok { TestA::frobnosticate(3, :foo) },
'calling non-existing function in foreign class dies';;
#?rakudo todo 'nom regression'

# Same, but check resulting exception message
try { TestA::frobnosticate(3, :foo)};

#?niecza todo
ok "$!" ~~ / ' TestA::b' /, 'error message mentions function name';
ok ~$! ~~ / 'frobnosticate' /, 'error message mentions function name';
}

# RT #71194
Expand Down

0 comments on commit ca05eae

Please sign in to comment.