summaryrefslogtreecommitdiffstats
path: root/tests/place.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-25 21:52:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-01-25 21:52:27 (GMT)
commitd9a19eb86556ff35a008fd183edaedb37ca511a5 (patch)
treeb91b9d82e1f9db3041a8ee2313c9cfe306fe0c44 /tests/place.test
parent886bdb9a6027b362a0bce947a2f18b0067443569 (diff)
downloadtk-d9a19eb86556ff35a008fd183edaedb37ca511a5.zip
tk-d9a19eb86556ff35a008fd183edaedb37ca511a5.tar.gz
tk-d9a19eb86556ff35a008fd183edaedb37ca511a5.tar.bz2
Slightly better error-message for "expected floating-point number", when the empty string is accepted as well
Diffstat (limited to 'tests/place.test')
-rw-r--r--tests/place.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/place.test b/tests/place.test
index f0dd513..49edeb0 100644
--- a/tests/place.test
+++ b/tests/place.test
@@ -79,7 +79,7 @@ test place-2.3 {ConfigureContent procedure, -height option} -setup {
test place-3.1 {ConfigureContent procedure, -relheight option} -body {
place .t.f2 -relheight abcd
-} -returnCodes error -result {expected floating-point number but got "abcd"}
+} -returnCodes error -result {expected floating-point number or "" but got "abcd"}
test place-3.2 {ConfigureContent procedure, -relheight option} -setup {
place forget .t.f2
} -body {
@@ -144,7 +144,7 @@ test place-4.7 {prevent management loops} -setup {
test place-5.1 {ConfigureContent procedure, -relwidth option} -body {
place .t.f2 -relwidth abcd
-} -returnCodes error -result {expected floating-point number but got "abcd"}
+} -returnCodes error -result {expected floating-point number or "" but got "abcd"}
test place-5.2 {ConfigureContent procedure, -relwidth option} -setup {
place forget .t.f2
} -body {