summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-10 16:09:13 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-10 16:09:13 (GMT)
commit251212bac0b047b26ad2fe76606688347175f3b9 (patch)
treefe64618ab002a7463b277ff0b866d346a7d39458 /tests
parent8f85d6a0fc17e5a781ab64e70991134b9009a274 (diff)
parent5947e3261525f012e16d814aca14fa42a498a5ce (diff)
downloadtk-251212bac0b047b26ad2fe76606688347175f3b9.zip
tk-251212bac0b047b26ad2fe76606688347175f3b9.tar.gz
tk-251212bac0b047b26ad2fe76606688347175f3b9.tar.bz2
More internal use of size_t. Add test-case imgPhoto-4.74, which shows error-handling when there are two values on the command line not connected to options.
Diffstat (limited to 'tests')
-rw-r--r--tests/imgPhoto.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index e566176..8cf1639 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -797,6 +797,13 @@ test imgPhoto-4.73 {ImgPhotoCmd procedure: copy with -compositingrule} -setup {
} -cleanup {
image delete photo1 photo2
} -result {0,2 1,1 2,0}
+test imgPhoto-4.74 {ImgPhotoCmd procedure: put option error handling} -setup {
+ image create photo photo1
+} -body {
+ photo1 put {{white}} -to 10 10 20 20 {{white}}
+} -cleanup {
+ image delete photo1
+} -returnCodes 1 -result {wrong # args: should be "photo1 put data ?-option value ...?"}
test imgPhoto-5.1 {ImgPhotoGet/Free procedures, shared instances} -constraints {
hasTeapotPhoto