Tk Library Source Code

View Ticket
Login
Ticket UUID: 1272899
Title: math::combinatorics - failed tests with Tcl 8.5
Type: Bug Version: None
Submitter: dgp Created on: 2005-08-25 17:27:29
Subsystem: math Assigned To: kennykb
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-08-26 11:20:41
Resolution: Fixed Closed By: kennykb
    Closed on: 2005-08-25 21:17:16
Description:
==== combinatorics-2.7 math::factorial, exponent
overflow FAILED
==== Contents of test case:

    catch { math::factorial 171 } msg
    list $msg $::errorCode

---- Result was:
Infinity {ARITH DOMAIN {argument to math::factorial
must be greater than -1.0}}
---- Result should have been (exact matching):
{floating-point value too large to represent} {ARITH
OVERFLOW {floating-point value too large to represent}}
==== combinatorics-2.7 FAILED


==== combinatorics-3.10 math::choose big args FAILED
==== Contents of test case:

    catch { math::choose 1500 750 } msg
    list $msg $::errorCode

---- Result was:
Infinity {ARITH DOMAIN {second argument to math::choose
must be non-negative, or both must be integers}}
---- Result should have been (exact matching):
{floating-point value too large to represent} {ARITH
OVERFLOW {floating-point value too large to represent}}
==== combinatorics-3.10 FAILED


==== math-7.4 math::cov FAILED
==== Contents of test case:

    catch { math::cov 0 2 1 0 } msg
    set msg

---- Result was:
Infinity
---- Result should have been (exact matching):
divide by zero
==== math-7.4 FAILED
User Comments: dgp added on 2005-08-26 11:20:41:
Logged In: YES 
user_id=80530


With Tcl 8.5 HEAD, these now fail
in a different way:

syntax error in expression " $msg == Infinity ": extra
tokens at end of expression