diff options
author | stanton <stanton@noemail.net> | 1998-06-18 18:25:57 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1998-06-18 18:25:57 (GMT) |
commit | 57bc1ba6fb3a753d650e06de4670f735cf33aac5 (patch) | |
tree | 0e642457c83579949f1c862535263886e6e1b374 /tests/cmdIL.test | |
parent | 1f75ab31c00646d29293d9bc09d4cd43e855f6e3 (diff) | |
download | tcl-57bc1ba6fb3a753d650e06de4670f735cf33aac5.zip tcl-57bc1ba6fb3a753d650e06de4670f735cf33aac5.tar.gz tcl-57bc1ba6fb3a753d650e06de4670f735cf33aac5.tar.bz2 |
*** empty log message ***
FossilOrigin-Name: 1d4fda1f1e8e794d8a3a11dca93ddc21259bf04f
Diffstat (limited to 'tests/cmdIL.test')
-rw-r--r-- | tests/cmdIL.test | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test index 5b56105..71ec774 100644 --- a/tests/cmdIL.test +++ b/tests/cmdIL.test @@ -251,3 +251,41 @@ test cmdIL-4.22 {DictionaryCompare procedure, case} { test cmdIL-4.23 {DictionaryCompare procedure, case} { lsort -dictionary {ABcd AbCd} } {ABcd AbCd} +test cmdIL-4.24 {DefaultCompare procedure, signed characters} { + set l [lsort [list "abc\200" "abc"]] + set viewlist {} + foreach s $l { + set viewelem "" + set len [string length $s] + for {set i 0} {$i < $len} {incr i} { + set c [string index $s $i] + scan $c %c d + if {$d > 0 && $d < 128} { + append viewelem $c + } else { + append viewelem "\\[format %03o $d]" + } + } + lappend viewlist $viewelem + } + set viewlist +} [list "abc" "abc\\200"] +test cmdIL-4.25 {DictionaryCompare procedure, signed characters} { + set l [lsort -dictionary [list "abc\200" "abc"]] + set viewlist {} + foreach s $l { + set viewelem "" + set len [string length $s] + for {set i 0} {$i < $len} {incr i} { + set c [string index $s $i] + scan $c %c d + if {$d > 0 && $d < 128} { + append viewelem $c + } else { + append viewelem "\\[format %03o $d]" + } + } + lappend viewlist $viewelem + } + set viewlist +} [list "abc" "abc\\200"] |