debuggers: import openocd-0.7.0
Initial check-in of openocd-0.7.0 as it can be downloaded from http://sourceforge.net/projects/openocd/files/openocd/0.7.0/ Any modifications will follow. Change-Id: I6949beaefd589e046395ea0cb80f4e1ab1654d55
This commit is contained in:
27
debuggers/openocd/jimtcl/tests/expand.test
Normal file
27
debuggers/openocd/jimtcl/tests/expand.test
Normal file
@ -0,0 +1,27 @@
|
||||
source [file dirname [info script]]/testing.tcl
|
||||
|
||||
test expand-1.1 "Basic tests" {
|
||||
set a {1 2 3}
|
||||
set b {4 5 6}
|
||||
lappend a {*}$b
|
||||
} {1 2 3 4 5 6}
|
||||
|
||||
test expand-1.2 "Basic tests" jim {
|
||||
set a {1 2 3}
|
||||
set b {4 5 6}
|
||||
lappend a {expand}$b
|
||||
} {1 2 3 4 5 6}
|
||||
|
||||
test expand-1.3 "Basic tests" {
|
||||
set a {1 2 3}
|
||||
set b {4 5 6}
|
||||
lappend a *$b
|
||||
} {1 2 3 {*4 5 6}}
|
||||
|
||||
test expand-1.4 "Basic tests" {
|
||||
set a {1 2 3}
|
||||
set b {4 5 6}
|
||||
lappend a expand$b
|
||||
} {1 2 3 {expand4 5 6}}
|
||||
|
||||
testreport
|
||||
Reference in New Issue
Block a user