Overview
| Artifact ID: | f46b77c6479367e83fef4e8df8ee41e72c615aba |
|---|---|
| Ticket: | 1341368fffffffffffffffffffffffffffffffff
expr-46.13-18 fail on 64-bit systems |
| User & Date: | dgp on 2005-10-29 06:43:44 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- comment changed to:
==== expr-46.13 round() boundary case - largest int FAILED ==== Contents of test case: set imax [expr {((1<<31) + 1) * -1}] expr {round($imax - 0.51)} ---- Result was: -2147483650 ---- Result should have been (exact matching): 2147483646 ==== expr-46.13 FAILED ==== expr-46.14 round() boundary case - largest int FAILED ==== Contents of test case: set imax [expr {((1<<31) + 1) * -1}] expr {round($imax - 0.50)} ---- Result was: -2147483650 ---- Result should have been (exact matching): 2147483647 ==== expr-46.14 FAILED ==== expr-46.15 round() boundary case - becomes wide int FAILED ==== Contents of test case: set imax [expr {((1<<31) + 1) * -1}] expr {round($imax + 0.50)} ---- Result was: -2147483649 ---- Result should have been (exact matching): 2147483648 ==== expr-46.15 FAILED ==== expr-46.16 round() boundary case - smallest int FAILED ==== Contents of test case: set imin [expr {1<<31}] expr {round($imin + 0.51)} ---- Result was: 2147483649 ---- Result should have been (exact matching): -2147483647 ==== expr-46.16 FAILED ==== expr-46.17 round() boundary case - smallest int FAILED ==== Contents of test case: set imin [expr {1<<31}] expr {round($imin + 0.50)} ---- Result was: 2147483649 ---- Result should have been (exact matching): -2147483648 ==== expr-46.17 FAILED ==== expr-46.18 round() boundary case - becomes wide int FAILED ==== Contents of test case: set imin [expr {1<<31}] expr {round($imin - 0.50)} ---- Result was: 2147483648 ---- Result should have been (exact matching): -2147483649 ==== expr-46.18 FAILED Perhaps it's just missing test constraints; the tests appear suitable only for systems on which the C long type is 32-bit. Still the point of the tests elude me. Just more stuff that's changing in 8.5, right? If we haven't tested it before, why start now? - foundin changed to: "obsolete: 8.4.11"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "expr-46.13-18 fail on 64-bit systems"
- type changed to: "Bug"