summaryrefslogtreecommitdiffstats
path: root/tests/winFont.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-09 07:23:05 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-06-09 07:23:05 (GMT)
commit28010d48e92cd516ab264586ddeff2233cc5eb4a (patch)
treefb05812192ca1bcc9ef6a4428e8d857b3d125118 /tests/winFont.test
parente1c1025a87901b4aed358668090787dcbd9c66a4 (diff)
downloadtk-28010d48e92cd516ab264586ddeff2233cc5eb4a.zip
tk-28010d48e92cd516ab264586ddeff2233cc5eb4a.tar.gz
tk-28010d48e92cd516ab264586ddeff2233cc5eb4a.tar.bz2
Remove many unnessesaary curly-braces in testcases
Diffstat (limited to 'tests/winFont.test')
-rw-r--r--tests/winFont.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/winFont.test b/tests/winFont.test
index 23c09c9..599b091 100644
--- a/tests/winFont.test
+++ b/tests/winFont.test
@@ -37,12 +37,12 @@ test winfont-2.1 {TkpGetFontFromAttributes procedure: pointsize} -constraints {
win
} -body {
expr {[font actual {-size -10} -size] > 0}
-} -result {1}
+} -result 1
test winfont-2.2 {TkpGetFontFromAttributes procedure: pointsize} -constraints {
win
} -body {
expr {[font actual {-family Arial} -size] > 0}
-} -result {1}
+} -result 1
test winfont-2.3 {TkpGetFontFromAttributes procedure: normal weight} -constraints {
win
} -body {
@@ -221,7 +221,7 @@ test winfont-5.5 {Tk_MeasureChars procedure: include last partial char} -constra
.t.c index $t @[expr {int($cx*2.5)}],1
} -cleanup {
destroy .t.c
-} -result {2}
+} -result 2
test winfont-5.6 {Tk_MeasureChars procedure: at least one char on line} -constraints {
win
@@ -337,7 +337,7 @@ test winfont-5.11 {Tk_MeasureChars procedure: check for kerning} -constraints {
expr {$x < ($width*10)}
} -cleanup {
destroy .t.l
-} -result {1}
+} -result 1
test winfont-6.1 {Tk_DrawChars procedure: loop test} -constraints win -setup {
@@ -375,12 +375,12 @@ test winfont-7.3 {AllocFont procedure: extract info from textmetric} -constraint
win
} -body {
font metric {arial 10 bold italic underline overstrike} -fixed
-} -result {0}
+} -result 0
test winfont-7.4 {AllocFont procedure: extract info from textmetric} -constraints {
win
} -body {
font metric systemfixed -fixed
-} -result {1}
+} -result 1
# cleanup
cleanupTests