diff options
author | dgp <dgp@users.sourceforge.net> | 2017-08-10 17:03:53 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-08-10 17:03:53 (GMT) |
commit | ed3d8a5c300d7029bc85bc0c012386ae933e230f (patch) | |
tree | 84d168be09660df884bd93b669ec1c23a7b3836c /tests | |
parent | d6e5a5012c055c7737f8f12ba124248812b4422a (diff) | |
download | tcl-ed3d8a5c300d7029bc85bc0c012386ae933e230f.zip tcl-ed3d8a5c300d7029bc85bc0c012386ae933e230f.tar.gz tcl-ed3d8a5c300d7029bc85bc0c012386ae933e230f.tar.bz2 |
Backport [array names -regexp] should support backrefs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/set-old.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/set-old.test b/tests/set-old.test index 1c68f91..6138ed8 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 |