chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #836: statistics tests fail


From: Chicken Trac
Subject: [Chicken-janitors] #836: statistics tests fail
Date: Sun, 13 May 2012 13:48:25 -0000

#836: statistics tests fail
---------------------+------------------------------------------------------
 Reporter:  sjamaan  |       Owner:  petercrlane
     Type:  defect   |      Status:  new        
 Priority:  major    |   Milestone:             
Component:  unknown  |     Version:  4.7.x      
 Keywords:           |  
---------------------+------------------------------------------------------
 The statistics tests started failing after the release of version 2.8 of
 the numbers egg, see http://tests.call-cc.org/master/linux/x86/2012/05/06
 /salmonella-report/test/statistics.html for the earliest failure.

 Unfortunately the spearman rank coefficient error is due to the use of the
 {{{~F}}} format specifier. Numbers now tries harder to produce exact
 results for {{{sqrt}}}, which means that the number is not a flonum
 anymore, but a rational number.  The "format" egg isn't aware of the
 numbers egg, so it gives an error (it doesn't understand that the ratnum
 type is a number). See the attached patch for a quick and dirty fix.

 If you prefer returning exact numbers where possible, you could either
 convert the values to inexact only where they're printed (and change the
 value in the "check" call to be a fractional) or you could change the
 format call to use {{~A}}, which does print the number correctly (it'll
 use the core {{{number->string}}} which is overwritten by the numbers egg
 to do the right thing) and exactly.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/836>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]