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
Failing tests for equivalence of Buf objects #5283
Comments
From @usev6Starting with rakudo commit fe2be65806 two tests in S16-io/supply.t start to fail with rakudo-j. The following rakudo commit 463e7589a1 seems to change the code path for the tests in question, but also makes them fail. Only if one reverts both commits, the tests pass again. The following code is a shortened version of one of the failing tests. Probably it could be golfed further. $ perl6-j -e 'my $f = "foo"; spurt($f,"a"); my $h = open($f); my $s = $h.Supply(:size(1),:bin); my $x; $s.tap( { $x = $_ } ); $h.close; my $y = Buf[uint8].new(ord "a"); say $x; say $y; say $x eqv $y' On rakudo-m the last comparison returns True: $ perl6-m -e 'my $f = "foo"; spurt($f,"a"); my $h = open($f); my $s = $h.Supply(:size(1),:bin); my $x; $s.tap( { $x = $_ } ); $h.close; my $y = Buf[uint8].new(ord "a"); say $x; say $y; say $x eqv $y' |
From @zoffixznetOn Sat, 30 Apr 2016 11:16:44 -0700, bartolin@gmx.de wrote:
Golfed it a bit (buf8 is what the Supply uses): <Zoffix> r: dd buf8 eqv Buf[uint8] |
The RT System itself - Status changed from 'new' to 'open' |
From @zoffixznethttps://irclog.perlgeek.de/perl6-dev/2017-03-20#i_14297315 Time Nick Message |
From @zoffixznetI meant... https://irclog.perlgeek.de/perl6-dev/2017-03-20#i_14297315 21:28 bartolin r: use nqp; say nqp::eqaddr(buf8.WHAT,Buf[uint8].WHAT) # RT #130914 |
Migrated from rt.perl.org#128041 (status was 'open')
Searchable as RT128041$
The text was updated successfully, but these errors were encountered: