diff options
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/string.test b/tests/string.test index 66eb6ad..977e875 100644 --- a/tests/string.test +++ b/tests/string.test @@ -323,6 +323,13 @@ test string-5.20 {string index, bytearray object out of bounds} { string index [binary format I* {0x50515253 0x52}] 20 } {} +test string-5.22 {string index} -constraints testbytestring -setup { + set string string +} -body { + list [scan [$string index [testbytestring \xFF] 0] %c var] $var +} -cleanup { + unset string +} -result {1 255} proc largest_int {} { # This will give us what the largest valid int on this machine is, |