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
Inconsistency with non-int $k in “combinations” (combinations 2, 0.5) #5197
Comments
From @AlexDanielCode: Result: Code: Result: These results are inconsistent. 0.5 cannot be unboxed to a native int too, but it is accepted. I think that both should result in the same error. |
From @usev6The implementation has changed with rakudo commit f220a5ed so that Int() is called on $k (and $n). The examples work consistently now, but it looks like there are no tests for this in roast: $ perl6-m -e 'say combinations 2, 0.5' $ perl6-m -e 'say combinations 2, 1.5' $ perl6-m -e 'say combinations 4, 2.5' |
1 similar comment
From @usev6The implementation has changed with rakudo commit f220a5ed so that Int() is called on $k (and $n). The examples work consistently now, but it looks like there are no tests for this in roast: $ perl6-m -e 'say combinations 2, 0.5' $ perl6-m -e 'say combinations 2, 1.5' $ perl6-m -e 'say combinations 4, 2.5' |
@usev6 - Status changed from 'new' to 'open' |
From @zoffixznetTests added: Raku/roast@0ff33b312b |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127779 (status was 'resolved')
Searchable as RT127779$
The text was updated successfully, but these errors were encountered: