Tk Library Source Code

View Ticket
Login
Ticket UUID: 1272754
Title: counter - failed tests with Tcl 8.5
Type: Bug Version: None
Submitter: dgp Created on: 2005-08-25 16:50:00
Subsystem: counter Assigned To: welch
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-09-27 23:50:30
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2006-09-27 16:50:30
Description:
==== counter-avg counter::count FAILED
==== Contents of test case:

    counter::init avg
    counter::count avg 2.2
    counter::count avg 3.3
    counter::count avg 9.8
    counter::get avg -avg

---- Result was:
5.1000000000000005
---- Result should have been (exact matching):
5.1
==== counter-avg FAILED

==== counter-hist histogram average FAILED
==== Contents of test case:

    counter::init hist -hist 10
    counter::count hist 2.2
    counter::count hist 18.6
    counter::count hist 14.1
    counter::count hist 26.9
    counter::count hist 20.4
    counter::count hist 23.3
    counter::count hist 53.3
    counter::get hist -avg

---- Result was:
22.685714285714283
---- Result should have been (exact matching):
22.6857142857
==== counter-hist FAILED
User Comments: andreas_kupries added on 2006-09-27 23:50:30:
Logged In: YES 
user_id=75003

Went with my idea and used 'format' to get results with a
deterministic precision across all versions. Committed.

andreas_kupries added on 2006-09-27 22:25:11:
Logged In: YES 
user_id=75003

Still an 8.5 specific problem, different (default)
precisions. Should we  use 'format' to round the value to a
specific precision ?

dgp added on 2006-09-27 22:14:30:
Logged In: YES 
user_id=80530


still failing in counter 2.0.4
(tcllib-1.9-rc1)