diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-11-25 09:38:04 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2016-11-25 09:38:04 (GMT) |
commit | 90781d6874c5e6c4a1c2f50f933330a3a76ebbce (patch) | |
tree | 51fed05c893c751728742ac2ffb65f0c9a9538e5 /tests | |
parent | fe050914128d2cb08469451d9bc1fa1904558060 (diff) | |
parent | a3572d2400fc9b189ceb5f6f2c929486d136ab05 (diff) | |
download | tcl-90781d6874c5e6c4a1c2f50f933330a3a76ebbce.zip tcl-90781d6874c5e6c4a1c2f50f933330a3a76ebbce.tar.gz tcl-90781d6874c5e6c4a1c2f50f933330a3a76ebbce.tar.bz2 |
Merge trunk, and fix two socket test-cases.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/set-old.test | 7 | ||||
-rw-r--r-- | tests/socket.test | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/set-old.test b/tests/set-old.test index 93169f1..309abaf 100644 --- a/tests/set-old.test +++ b/tests/set-old.test @@ -652,6 +652,13 @@ test set-old-8.52 {array command, array names -regexp on regexp pattern} { set a(11) 1 list [catch {lsort [array names a -regexp ^1]} msg] $msg } {0 {1*2 11 12}} +test set-old-8.52.1 {array command, array names -regexp, backrefs} { + catch {unset a} + set a(1*2) 1 + set a(12) 1 + set a(11) 1 + list [catch {lsort [array names a -regexp {^(.)\1}]} msg] $msg +} {0 11} test set-old-8.53 {array command, array names -regexp} { catch {unset a} set a(-glob) 1 diff --git a/tests/socket.test b/tests/socket.test index 387e08e..c1076eb 100644 --- a/tests/socket.test +++ b/tests/socket.test @@ -283,7 +283,7 @@ test socket_$af-1.7 {arg parsing for socket command} -constraints [list socket s } -returnCodes error -result {wrong # args: should be "socket ?-myaddr addr? ?-myport myport? ?-async? host port" or "socket -server command ?-reuseaddr boolean? ?-reuseport boolean? ?-myaddr addr? port"} test socket_$af-1.8 {arg parsing for socket command} -constraints [list socket supported_$af] -body { socket -froboz -} -returnCodes error -result {bad option "-froboz": must be -async, -myaddr, -myport, -server, -reuseaddr, or -reuseport} +} -returnCodes error -result {bad option "-froboz": must be -async, -myaddr, -myport, -reuseaddr, -reuseport, or -server} test socket_$af-1.9 {arg parsing for socket command} -constraints [list socket supported_$af] -body { socket -server foo -myport 2521 3333 } -returnCodes error -result {option -myport is not valid for servers} |