summaryrefslogtreecommitdiffstats
path: root/tests
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)
commitaa9bd3dbdd1d48a32b4e6315b190be65d430f57d (patch)
tree6698ec670204b345671258ae400eccb7cc254143 /tests
parenta4c3a3fd6314b56c439239cd6f742601c81c38ca (diff)
downloadtk-aa9bd3dbdd1d48a32b4e6315b190be65d430f57d.zip
tk-aa9bd3dbdd1d48a32b4e6315b190be65d430f57d.tar.gz
tk-aa9bd3dbdd1d48a32b4e6315b190be65d430f57d.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 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