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

substr-rw #5198

Closed
p6rt opened this issue Mar 25, 2016 · 7 comments
Closed

substr-rw #5198

p6rt opened this issue Mar 25, 2016 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 25, 2016

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

Searchable as RT127782$

@p6rt
Copy link
Author

p6rt commented Mar 25, 2016

@p6rt
Copy link
Author

p6rt commented Mar 25, 2016

From @AlexDaniel

Not sure if this is related, but it reminds me of this​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=123602

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

From @zoffixznet

Still present on rakudo 89470a​:

<Zoffix> m​: my $a = '.' x 3 ~ 'x'; my $b = sprintf('%s', $a); say $a; say $b; $a.substr-rw( 0, 2 ) = ''; $b.substr-rw( 0, 2 ) = ''; say $a; say $b;
<camelia> rakudo-moar 89470a​: OUTPUT«...x␤...x␤..␤.x␤»

@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

From @zoffixznet

A bit more investigation​:
* If the string given to `x` is more than 1 character, the bug doesn't appear
* The bug also doesn't seem to be present on JVM backend

<Zoffix> m​: my $a = '.|' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a
<camelia> rakudo-moar 713ad5​: OUTPUT«..|.|.|a␤»
<Zoffix> m​: my $a = '.' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a
<camelia> rakudo-moar 713ad5​: OUTPUT«....␤»
<Zoffix> j​: my $a = '.' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a
<camelia> rakudo-jvm cd19db​: OUTPUT«...a␤»

♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁

TODO-fudged tests added in Raku/roast@3f964dca6d

🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥

--
Cheers,
ZZ | https://twitter.com/zoffix

@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

From @jnthn

On Wed Jul 20 19​:43​:32 2016, cpan@​zoffix.com wrote​:

A bit more investigation​:
* If the string given to `x` is more than 1 character, the bug doesn't
appear
* The bug also doesn't seem to be present on JVM backend

<Zoffix> m​: my $a = '.|' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a
<camelia> rakudo-moar 713ad5​: OUTPUT«..|.|.|a␤»
<Zoffix> m​: my $a = '.' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a
<camelia> rakudo-moar 713ad5​: OUTPUT«....␤»
<Zoffix> j​: my $a = '.' x 4 ~ 'a'; $a.substr-rw(1,1) = ''; say $a
<camelia> rakudo-jvm cd19db​: OUTPUT«...a␤»

♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥
🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁

TODO-fudged tests added in
Raku/roast@3f964dca6d

🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁
♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥♥

This was effectively a dupe of RT #​123602, which I've just fixed. Untodo'd the now-passing spectest in substr-rw.t.

@p6rt
Copy link
Author

p6rt commented Jul 21, 2016

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

@p6rt p6rt closed this as completed Jul 21, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant