Tk Source Code

View Ticket
Login
Ticket UUID: 1591481
Title: canvRect.test 9.1 and 10.1 failure
Type: Bug Version: obsolete: 8.5a5
Submitter: lvirden Created on: 2006-11-06 17:01:09
Subsystem: 05. Canvas Items Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-10-22 17:22:34
Resolution: Fixed Closed By: serhiy.storchaka
    Closed on: 2026-09-24 20:39:53
Description:
Platform: built cvs head using SPARC Solaris 2.9 and
Sun C compiler, 
configured by ./configure, generated by GNU Autoconf 2.59, 
  with options \"'--prefix=/volws/lwv27/ldatae'
'--enable-shared' '--enable-symbols' '--enable-stubs'
'--enable-langinfo' 'CC=cc'\"

(Note that tcl 8.5a5 cvs head was configured with
threads enabled).

Tk tests were displayed from SPARC Solaris through a
Windows XP SP2 Intel via Hummingbird Exceed version
10.0.0.12 .


The following two test cases failed:
  
canvRect.test

==== canvRect-9.1 ScaleRectOval procedure FAILED
==== Contents of test case:

    .c delete withtag all
    .c create rect 100 300 200 350 -tags x
    .c scale x 50 100 2 4
    .c coords x

---- Result was:
150.0 900.0 350.0 1099.9999999999998
---- Result should have been (exact matching):
150.0 900.0 350.0 1100.0
==== canvRect-9.1 FAILED

==== canvRect-10.1 TranslateRectOval procedure FAILED
==== Contents of test case:

    .c delete withtag all
    .c create rect 100 300 200 350 -tags x
    .c move x 100 -10
    .c coords x

---- Result was:
200.0 290.0 300.0 339.99999999999994
---- Result should have been (exact matching):
200.0 290.0 300.0 340.0
==== canvRect-10.1 FAILED
User Comments: serhiy.storchaka added on 2026-09-24 20:39:53:

Fixed in 8.6.0 by [ec65fd1987]: the tests now compare the coordinates formatted with %.6g, so rounding in the last digit no longer matters. Closing.


[email protected] added on 2007-12-17 21:24:49:
Logged In: NO 

This continues to be the exact failure with tk 8.5.0 rc4.