diff options
author | dgp <dgp@users.sourceforge.net> | 2007-10-23 16:05:24 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-10-23 16:05:24 (GMT) |
commit | 8b34cd579320036335e6cc2e53afe6c70c3090fa (patch) | |
tree | d613ca2accd7e7110cf5c5f6e968434fc62ef9c2 /tests/cursor.test | |
parent | 620c50bb12c97692f525d2b46aa33bd6f36835b8 (diff) | |
download | tk-8b34cd579320036335e6cc2e53afe6c70c3090fa.zip tk-8b34cd579320036335e6cc2e53afe6c70c3090fa.tar.gz tk-8b34cd579320036335e6cc2e53afe6c70c3090fa.tar.bz2 |
* tests/cursor.test: Make tests robust against changes in Tcl's
rules for accepting integers in octal format.
Diffstat (limited to 'tests/cursor.test')
-rw-r--r-- | tests/cursor.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cursor.test b/tests/cursor.test index d5dabcf..e92c08f 100644 --- a/tests/cursor.test +++ b/tests/cursor.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: cursor.test,v 1.16 2006/12/17 00:43:06 mdejong Exp $ +# RCS: @(#) $Id: cursor.test,v 1.17 2007/10/23 16:05:24 dgp Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -76,7 +76,7 @@ set wincur(data_octal) { } set wincur(data_binary) {} foreach wincur(num) $wincur(data_octal) { - append wincur(data_binary) [binary format c 0$wincur(num)] + append wincur(data_binary) [binary format c [scan $wincur(num) %o]] } set wincur(dir) [makeDirectory {dir with spaces}] set wincur(file) [makeFile $wincur(data_binary) "test file.cur" $wincur(dir)] |