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
some floats with many digits don't survive roundtrip with .perl #3564
Comments
From @usev6Today I got a failure while spectesting for rakudo.jvm: Failure summary: I investigated and the test in question runs fine most of the time but fails only once in a while. The test in question is on the last line of following code: # RT #61918 method init { my $t1 = RT61918.new(); ok $t1_new ne $t1_init, 'changing object changes .perl output'; # TODO: more tests that show EVAL($t1_init) has the same guts as $t1. # RT #62002 -- validity of default .perl To me it looks as if "rand" (in method "init") sporadically generates values that don't survive the roundtrip on JVM. I tried to reproduce the failure and eventually came up with an example: $ perl6-j -e 'my $a = 0.219947518065601987e0; say $a.perl; say EVAL($a.perl).perl' Moar and Parrot return less decimal places for $a.perl already: $ perl6-m -e 'my $a = 0.219947518065601987e0; say $a.perl; say EVAL($a.perl).perl' So .perl behaves differently in this case on JVM and Moar/Parrot. Maybe I'm looking in the wrong direction, but the test failure should not occur. I'm going to fudge the test ('skip') for rakudo.jvm. |
From @moritzHi, On 10/24/2014 06:16 PM, Christian Bartolomaeus (via RT) wrote:
The better approach is to isolate the user-defined type roundtrips test So rather remove the rand's, replace them by fixed values, and have Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @usev6Hi, On Mon Oct 27 02:19:48 2014, moritz wrote:
I did that with commit Raku/roast@2cba5c0ede Thanks for the suggestion! Cheers, |
1 similar comment
From @usev6Hi, On Mon Oct 27 02:19:48 2014, moritz wrote:
I did that with commit Raku/roast@2cba5c0ede Thanks for the suggestion! Cheers, |
From @usev6The test in S02-names-vars/perl.t is passing now. I'm closing this ticket as 'resolved'. |
1 similar comment
From @usev6The test in S02-names-vars/perl.t is passing now. I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123048 (status was 'resolved')
Searchable as RT123048$
The text was updated successfully, but these errors were encountered: