New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
&eval of empty string returns 1 in Rakudo #1700
Comments
From @masak<masak> rakudo: say eval "" |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-builtin_data_types/nil.t commit 8d42030b8328cf141ebdce17f29835672f6f99c0 Test for RT 74448: eval of empty string should be Nil Inline Patchdiff --git a/t/spec/S02-builtin_data_types/nil.t b/t/spec/S02-builtin_data_types/nil.t
index 6b0337c..688f97b 100644
--- a/t/spec/S02-builtin_data_types/nil.t
+++ b/t/spec/S02-builtin_data_types/nil.t
@@ -10,6 +10,7 @@ sub empty_do { do {} }
sub empty_branch_true { if 1 {} else { 1; } }
sub empty_branch_false { if 0 { 1; } else {} }
sub bare_return { return; }
+sub rt74448 { eval '' }
#?rakudo 4 skip 'return value of if/for etc'
ok empty_sub() ~~ Nil, 'empty sub returns Nil';
@@ -17,6 +18,8 @@ ok empty_do() ~~ Nil, 'do {} is Nil';
ok empty_branch_true() ~~ Nil, 'if 1 {} is Nil';
ok empty_branch_false() ~~ Nil, 'else {} is Nil';
ok bare_return() ~~ Nil, 'bare return returns Nil';
+#?rakudo todo 'RT 74448: eval of empty string should be Nil'
+ok rt74448() ~~ Nil, 'eval of empty string is Nil';
# RT #63894
{ |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrOn * release perl6 -e 'say eval ""' (no output) $ perl6 -e 'say (eval "").WHAT' |
From @bbkr[14:13] <bbkr> I have question regarding |
From @bbkrthis test is already unfudged in 31891 revision |
@bbkr - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74448 (status was 'resolved')
Searchable as RT74448$
The text was updated successfully, but these errors were encountered: