summaryrefslogtreecommitdiffstats
path: root/tests/imgPhoto.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-10 16:02:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-10 16:02:10 (GMT)
commit5947e3261525f012e16d814aca14fa42a498a5ce (patch)
tree6698ec670204b345671258ae400eccb7cc254143 /tests/imgPhoto.test
parent8d65c105a16c35b35a3832d815661e923c43bd80 (diff)
downloadtk-5947e3261525f012e16d814aca14fa42a498a5ce.zip
tk-5947e3261525f012e16d814aca14fa42a498a5ce.tar.gz
tk-5947e3261525f012e16d814aca14fa42a498a5ce.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/imgPhoto.test')
-rw-r--r--tests/imgPhoto.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index e85f512..db23fea 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