diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-07-05 10:00:58 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-07-05 10:00:58 (GMT) |
| commit | 6dbf2896b1e888032b511b182f52c5e9544db86c (patch) | |
| tree | 9c0659edfca4ad4c3f8478419313f9e66fea6e1e /tests/expr.test | |
| parent | 5b9decfc5c7c9e6feae2d789a73bcfd7f465825e (diff) | |
| download | tcl-6dbf2896b1e888032b511b182f52c5e9544db86c.zip tcl-6dbf2896b1e888032b511b182f52c5e9544db86c.tar.gz tcl-6dbf2896b1e888032b511b182f52c5e9544db86c.tar.bz2 | |
Possible fix for [0439e1e1a3]: Slow detection of illegal expr argument
Diffstat (limited to 'tests/expr.test')
| -rw-r--r-- | tests/expr.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/expr.test b/tests/expr.test index bfefde3..a13250b 100644 --- a/tests/expr.test +++ b/tests/expr.test @@ -501,6 +501,9 @@ test expr-11.13a {CompileAddExpr: runtime error} !ieeeFloatingPoint { test expr-11.13b {CompileAddExpr: runtime error} ieeeFloatingPoint { list [catch {expr {2.3/0.0}} msg] $msg } {0 Inf} +test expr-11.14 {CompileAddExpr: runtime error} { + list [catch {expr {24.0+[lseq 2 4]}} msg] $msg +} {1 {can't use a list as operand of "+"}} test expr-12.1 {CompileMultiplyExpr: just unary expr} {expr ~4} -5 test expr-12.2 {CompileMultiplyExpr: just unary expr} {expr --5} 5 @@ -7227,6 +7230,9 @@ test expr-47.13 {isqrt and floating point rounding (Bug 2143288)} { } set trouble } {} +test expr-47.14 {isqrt() - lseq} { + list [catch {expr {isqrt([lseq 1 3])}} result] $result +} {1 {expected number but got a list}} test expr-48.1 {Bug 1770224} { expr {-0x8000000000000001 >> 0x8000000000000000} |
