Skip to content
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

the trans method in Cool doesn't handle adverbs correctly #5665

Closed
p6rt opened this issue Sep 12, 2016 · 6 comments
Closed

the trans method in Cool doesn't handle adverbs correctly #5665

p6rt opened this issue Sep 12, 2016 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Sep 12, 2016

Migrated from rt.perl.org#129258 (status was 'resolved')

Searchable as RT129258$

@p6rt
Copy link
Author

p6rt commented Sep 12, 2016

From @dogbert17

# tested with

This is Rakudo version 2016.08.1-169-g15532db built on MoarVM version
2016.08-43-g3d04391
implementing Perl 6.c.

# the problem, compare result between Str.trans and Cool.trans. Both should
return the same result​:

dogbert@​dogbert-VirtualBox ~/.rakudobrew/moar-nom $ perl6 -e 'say
"123123".trans("23" => "", :complement)'
2323

dogbert@​dogbert-VirtualBox ~/.rakudobrew/moar-nom $ perl6 -e 'say
123123.trans("23" => "", :complement)'
11

/dogbert17

@p6rt
Copy link
Author

p6rt commented Sep 12, 2016

From @zoffixznet

For others reading the ticket. I asked OP to submit the fix[^1] to get some practice fixing Rakudo bugs, so this ticket is taken.

[1] http://irclog.perlgeek.de/perl6/2016-09-12#i_13194275

@p6rt
Copy link
Author

p6rt commented Sep 12, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 12, 2016

From @zoffixznet

Fixed in rakudo/rakudo@22946ed9bb

Tests needed

@p6rt
Copy link
Author

p6rt commented Sep 12, 2016

From @zoffixznet

Tests added in Raku/roast@54ad7fda46

@p6rt p6rt closed this as completed Sep 12, 2016
@p6rt
Copy link
Author

p6rt commented Sep 12, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant