diff options
author | stanton <stanton> | 1998-06-18 18:25:58 (GMT) |
---|---|---|
committer | stanton <stanton> | 1998-06-18 18:25:58 (GMT) |
commit | e27be7921a7f70adf89b0c59b976c96c32fae7a8 (patch) | |
tree | 0e642457c83579949f1c862535263886e6e1b374 /tests/cmdIL.test | |
parent | 75b521227f47c2241a4edb7d1e913ac348f05f12 (diff) | |
download | tcl-e27be7921a7f70adf89b0c59b976c96c32fae7a8.zip tcl-e27be7921a7f70adf89b0c59b976c96c32fae7a8.tar.gz tcl-e27be7921a7f70adf89b0c59b976c96c32fae7a8.tar.bz2 |
*** empty log message ***
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"] |