summaryrefslogtreecommitdiffstats
path: root/tests/scale.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-10-30 15:26:42 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-10-30 15:26:42 (GMT)
commitd3ef44d83f7b830ccbf06ae02c206bafc4205718 (patch)
treec02cfebbe3bcc52d1170176fc41c1f6b977ed2ac /tests/scale.test
parent68cef1c2303479412defc523308a701594703936 (diff)
parentfc77a30223d683708ec4aeadbf6dde442f4f402f (diff)
downloadtk-d3ef44d83f7b830ccbf06ae02c206bafc4205718.zip
tk-d3ef44d83f7b830ccbf06ae02c206bafc4205718.tar.gz
tk-d3ef44d83f7b830ccbf06ae02c206bafc4205718.tar.bz2
[3417012] Stop [scale] segfault when -digits too big. Thanks fvogel.
Diffstat (limited to 'tests/scale.test')
-rw-r--r--tests/scale.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/scale.test b/tests/scale.test
index 13ccb4d..1e072a0 100644
--- a/tests/scale.test
+++ b/tests/scale.test
@@ -688,6 +688,11 @@ test scale-6.20 {ComputeFormat procedure} -body {
.s set 1001.23456789
.s get
} -result {1001.235}
+test scale-6.21 {ComputeFormat procedure} -body {
+ .s configure -length 200 -from 1000 -to 1001.8 -resolution 0 -digits 200
+ .s set 1001.23456789
+ .s get
+} -result {1001.235}
destroy .s