Skip to content
Tcl Source Code View Ticket
Login

View Ticket

error in expr.test

Closed / Fixed585986ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-24 15:28:52
[mig@mini unix]$ ./tcltest ../tests/expr.test 

==== expr-22.2 non-numeric floats FAILED
==== Contents of test case:

    list [catch {expr {Inf + 1}} msg] $msg

---- Result was:
1 {floating-point value too large to represent}
---- Result should have been (exact matching):
1 {can't use infinite floating-point value as operand
of "+"}
==== expr-22.2 FAILED


==== expr-22.4 non-numeric floats FAILED
==== Contents of test case:

    set inf Inf
    list [catch {expr {$inf + 1}} msg] $msg

---- Result was:
1 {floating-point value too large to represent}
---- Result should have been (exact matching):
1 {can't use infinite floating-point value as operand
of "+"}
==== expr-22.4 FAILED
msoferplain2002-07-24 22:34:32
Logged In: YES 
user_id=148712

oops! Now, why did I assign to wolfsuit? Meaning to bug Donal!
dkf Ticket [585986ffff]: 1 change [History diff]2002-07-31 04:07:13
dkfplain2002-07-31 16:37:51
Logged In: YES 
user_id=79902

These tests fail in too many different ways.  Nonportable,
but left in because they do mark something that *ought* to
be tested (even if it isn't.)
dkf Ticket [585986ffff]: 3 changes [History diff]2002-07-31 16:38:49
dgpplain2002-08-01 01:49:03
Logged In: YES 
user_id=80530

By labelling the tests a nonPortable, are
we masking the non-portability of the
feature itself?

What is the correct [expr] behavior?
Log in (anonymous is fine) to add a comment.