Skip to content
Browse files

eliminate a "nom regression"

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...
1 parent 20f286c commit ca05eaeb9e1241e43697a845c0d96ebc7783a870 @coke coke committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 S02-names-vars/names.t
View
9 S02-names-vars/names.t
@@ -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

0 comments on commit ca05eae

Please sign in to comment.
Something went wrong with that request. Please try again.